Apply automatic eslint fixes
This commit is contained in:
Vendored
+4
-5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user