Skip to content

Commit

Permalink
Only remove @latest_shortage if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Sep 18, 2017
1 parent 1a41451 commit bade7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/shortage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def report_shortage
if @deleted_shortages.size > 0 || @changes_shortages.size > 0
@has_relevant_changes = true
else
FileUtils.rm(Latest.get_daily_name(@latest_shortage), :verbose => true)
FileUtils.rm_f(Latest.get_daily_name(@latest_shortage), :verbose => true)
end
end
def report_nomarketing
Expand Down

0 comments on commit bade7cb

Please sign in to comment.