Apply automatic eslint fixes

This commit is contained in:
Daniel García Aubert
2019-10-21 19:07:24 +02:00
parent 593d9e40f6
commit 4d70ac0894
246 changed files with 11782 additions and 11454 deletions
+4 -5
View File
@@ -2,7 +2,7 @@
var crypto = require('crypto');
function NamedMaps(owner, name) {
function NamedMaps (owner, name) {
this.namespace = 'n';
this.owner = owner;
this.name = name;
@@ -10,11 +10,10 @@ function NamedMaps(owner, name) {
module.exports = NamedMaps;
NamedMaps.prototype.key = function() {
NamedMaps.prototype.key = function () {
return this.namespace + ':' + shortHashKey(this.owner + ':' + this.name);
};
function shortHashKey(target) {
return crypto.createHash('sha256').update(target).digest('base64').substring(0,6);
function shortHashKey (target) {
return crypto.createHash('sha256').update(target).digest('base64').substring(0, 6);
}