Skip to content

Commit

Permalink
Fix the case of default without source
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-tan committed Nov 19, 2020
1 parent d7bd412 commit f7c0430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ep3/init/cwl2wfnet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ def wfnet(cwl)
if hash[:index].nil?
if hash[:nextParam].nil?
nil
elsif hash[:prevParam].nil?
%Q!#{hash[:nextParam]}: #{JSON.dump(hash[:default].to_h)}!
elsif hash[:default].instance_of?(InvalidValue)
%Q!#{hash[:nextParam]}: .[#{idx}].#{hash[:prevParam]}!
else
Expand Down

0 comments on commit f7c0430

Please sign in to comment.