Skip to content

Commit

Permalink
Merge branch 'main' into lp-ci-up
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp committed Jan 17, 2025
2 parents c24568c + 90f5468 commit efc98fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/beacon/web/cache/stale.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ defimpl Beacon.Web.Cache.Stale, for: Any do
[last_modified, Any.recurse_fields(schema, assocs, &Stale.last_modified/1)]
end

defp fetch_last_modified(_schema, nil), do: ~N[0000-01-01 00:00:00]
defp fetch_last_modified(schema, key), do: Map.fetch!(schema, key)
defp fetch_last_modified(schema, key), do: Map.get(schema, key) || ~N[0000-01-01 00:00:00]
end
end
end
Expand Down

0 comments on commit efc98fd

Please sign in to comment.