Use let instead of var in objects.js
This commit is contained in:
parent
37912b3a3f
commit
de4dc71820
1 changed files with 1 additions and 3 deletions
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
var o = null // eslint-disable-line no-unused-vars
|
var o = null // eslint-disable-line no-unused-vars
|
||||||
|
|
||||||
// TODO: https://github.com/MozillaSecurity/octo/issues/7
|
|
||||||
|
|
||||||
function Objects () {
|
function Objects () {
|
||||||
this.counter = 0
|
this.counter = 0
|
||||||
this.container = {}
|
this.container = {}
|
||||||
|
@ -77,7 +75,7 @@ Objects.prototype.count = function (category) {
|
||||||
Objects.prototype.has = function (category) {
|
Objects.prototype.has = function (category) {
|
||||||
if (category in this.container) {
|
if (category in this.container) {
|
||||||
this.check(category)
|
this.check(category)
|
||||||
return !!(this.container[category].length > 0)
|
return this.container[category].length > 0
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue