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