Skip to content

Commit

Permalink
Remove useless if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
iaguirre88 committed Apr 11, 2022
1 parent 9675d5f commit afd3bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/boom_notifier/error_storage.ex
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ defmodule BoomNotifier.ErrorStorage do
accumulated_occurrences = Map.get(error_storage_item, :accumulated_occurrences)
max_storage_capacity = Map.get(error_storage_item, :__max_storage_capacity__)

if accumulated_occurrences >= max_storage_capacity, do: true, else: false
accumulated_occurrences >= max_storage_capacity
end
end

0 comments on commit afd3bee

Please sign in to comment.