Skip to content

Commit

Permalink
Fix dialyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Jan 28, 2025
1 parent dc3d0c3 commit e26cf49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ring_logger/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ defmodule RingLogger.Server do
@impl GenServer
def terminate(_reason, state) do
if is_binary(state.persist_path) do
Persistence.save(state.persist_path, merge_buffers(state))
# Best effort save.
_ = Persistence.save(state.persist_path, merge_buffers(state))
:ok
end

close_all_clients(state)
Expand Down

0 comments on commit e26cf49

Please sign in to comment.