Skip to content

Commit

Permalink
test(credo): disable credo error , this same code is in posts create …
Browse files Browse the repository at this point in the history
…changeset and does not cause an error
  • Loading branch information
akinsey committed Aug 31, 2024
1 parent 0df86d7 commit 2886818
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/epochtalk_server/models/post.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ defmodule EpochtalkServer.Models.Post do
attrs :: map() | nil,
now_override :: NaiveDateTime.t() | nil
) :: Ecto.Changeset.t()
# credo:disable-for-next-line
def create_changeset(post, attrs, now_override \\ nil) do
now = now_override || NaiveDateTime.truncate(NaiveDateTime.utc_now(), :second)

Expand Down

0 comments on commit 2886818

Please sign in to comment.