lint compliance, simplify a test condition

pull/1/head
ansuz 5 years ago
parent ce6cf6f727
commit ccd6e1d6df

@ -402,11 +402,6 @@ nThen(function (w) {
alice.edKeys.edPublic
]
}, w(function (err, response) {
if (err) {
throw new Error("FAIL");
return void console.error(err);
}
var metadata = response && response[0];
if (!metadata || !Array.isArray(metadata.allowed) ||
metadata.allowed.indexOf(alice.edKeys.edPublic) === -1) {

Loading…
Cancel
Save