Use let instead of var in objects.js

This commit is contained in:
Christoph Diehl 2017-05-02 17:12:49 +03:00
parent 37912b3a3f
commit de4dc71820
1 changed files with 1 additions and 3 deletions

View File

@ -4,8 +4,6 @@
var o = null // eslint-disable-line no-unused-vars
// TODO: https://github.com/MozillaSecurity/octo/issues/7
function Objects () {
this.counter = 0
this.container = {}
@ -77,7 +75,7 @@ Objects.prototype.count = function (category) {
Objects.prototype.has = function (category) {
if (category in this.container) {
this.check(category)
return !!(this.container[category].length > 0)
return this.container[category].length > 0
}
return false
}