Skip to content

Commit

Permalink
Fixed a bug
Browse files Browse the repository at this point in the history
The metadata of a custom etod was not checked against null. With other words, if you have used the metadata 'file', it still produce an error as if you haven't use the metadata 'file'
  • Loading branch information
ljsquare committed Feb 27, 2021
1 parent c230dc5 commit f209773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ephem_tod/javascript/ephemTimeOfDay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ actions:
return item + " has type " + type + " which requires a 'set' value to be defined.";
}
if(type == "custom" && getValue(item, ETOD_NAMESPACE, "file")) {
if(type == "custom" && getValue(item, ETOD_NAMESPACE, "file") === null ) {
return item + " has type " + type + " which requires a 'file' value to be defined.";
}
return null;
}

This comment has been minimized.

Copy link
@frest-de

frest-de Mar 20, 2021

Contributor

The bracket got lost.

/**
Expand Down

0 comments on commit f209773

Please sign in to comment.