resolve only networkname if id no present

pull/1/head
yann300 6 years ago
parent a4aa164926
commit 19b889e645
  1. 4
      src/app/files/compiler-metadata.js

@ -73,9 +73,7 @@ class CompilerMetadata {
if (error) return callback(error)
try {
var metadata = JSON.parse(content)
if (metadata[name + ':' + id]) {
callback(null, metadata[name + ':' + id])
}
return callback(null, metadata[name + ':' + id] || metadata[name])
} catch (e) {
callback(e.message)
}

Loading…
Cancel
Save