mirror of
https://github.com/scratchfoundation/scratch-analysis.git
synced 2025-05-04 01:43:43 -04:00
Don't set origin at all if it doesn't exist.
This commit is contained in:
parent
26ff6d7265
commit
22d822d1f8
2 changed files with 6 additions and 4 deletions
lib
|
@ -126,9 +126,11 @@ const extensions = function (list) {
|
|||
};
|
||||
|
||||
const metadata = function (meta) {
|
||||
return {
|
||||
origin: meta.origin ? meta.origin : ''
|
||||
};
|
||||
let obj = {};
|
||||
if (meta.origin) {
|
||||
obj.origin = meta.origin;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
|
||||
module.exports = function (project, callback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue