lint compliance, simplify a test condition
This commit is contained in:
parent
ce6cf6f727
commit
ccd6e1d6df
@ -402,11 +402,6 @@ nThen(function (w) {
|
|||||||
alice.edKeys.edPublic
|
alice.edKeys.edPublic
|
||||||
]
|
]
|
||||||
}, w(function (err, response) {
|
}, w(function (err, response) {
|
||||||
if (err) {
|
|
||||||
throw new Error("FAIL");
|
|
||||||
return void console.error(err);
|
|
||||||
}
|
|
||||||
|
|
||||||
var metadata = response && response[0];
|
var metadata = response && response[0];
|
||||||
if (!metadata || !Array.isArray(metadata.allowed) ||
|
if (!metadata || !Array.isArray(metadata.allowed) ||
|
||||||
metadata.allowed.indexOf(alice.edKeys.edPublic) === -1) {
|
metadata.allowed.indexOf(alice.edKeys.edPublic) === -1) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user