Skip to content

Commit 3e21b08

Browse files
LostKobrakaijjcarstens
authored andcommitted
Don't spam logs for unexpected return value if truncation is disabled.
1 parent 587e39c commit 3e21b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/nerves_hub_web_core/lib/nerves_hub_web_core/workers/truncate_audit_logs.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ defmodule NervesHubWebCore.Workers.TruncateAuditLogs do
88
@impl true
99
def run(_) do
1010
config = Application.get_env(:nerves_hub_web_core, __MODULE__)
11-
if config[:enabled], do: NervesHubWebCore.AuditLogs.truncate(config)
11+
if config[:enabled], do: NervesHubWebCore.AuditLogs.truncate(config), else: :ok
1212
end
1313
end

0 commit comments

Comments
 (0)