Skip to content

Commit

Permalink
fix nil location issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyRuffian committed Aug 25, 2020
1 parent 024137f commit 2600197
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/chutney/linter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ def add_issue(message, feature = nil, scenario = nil, step = nil)
def location(feature, scenario, step)
if step
step[:location]
else
scenario ? scenario[:location] : feature[:location]
elsif scenario
scenario[:location]
else
feature ? feature[:location] : 0
end
end

Expand Down

0 comments on commit 2600197

Please sign in to comment.