Skip to content

Commit

Permalink
chore: Run mix.format
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Jun 18, 2024
1 parent b98be6c commit 2072235
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions apps/cf/lib/accounts/invitations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ defmodule CF.Accounts.Invitations do
frontend_url = Application.fetch_env!(:cf, :frontend_url)

Logger.info(
"Generated #{number} invites for token #{token}. Url: #{frontend_url}/signup?invitation_token=#{
token
}"
"Generated #{number} invites for token #{token}. Url: #{frontend_url}/signup?invitation_token=#{token}"
)
end

Expand Down
4 changes: 1 addition & 3 deletions apps/cf/lib/accounts/user_permissions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ defmodule CF.Accounts.UserPermissions do
if action_count >= limit + @limit_warning_threshold,
do:
Logger.warn(fn ->
"User #{user.username} (#{user.id}) overthrown its limit for [#{action_type} #{
entity
}] (#{action_count}/#{limit})"
"User #{user.username} (#{user.id}) overthrown its limit for [#{action_type} #{entity}] (#{action_count}/#{limit})"
end)

{:error, @error_limit_reached}
Expand Down
4 changes: 1 addition & 3 deletions apps/cf_atom_feed/test/comments_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ defmodule CF.AtomFeed.CommentsTest do
# Check comment entries
for comment <- comments do
assert feed =~
~r(https://TEST_FRONTEND/videos/[a-zA-Z0-9]+\?statement=#{comment.statement_id}&amp;c=#{
comment.id
}"/>)
~r(https://TEST_FRONTEND/videos/[a-zA-Z0-9]+\?statement=#{comment.statement_id}&amp;c=#{comment.id}"/>)

assert feed =~ ~r(<title>New Comment from .+ on ##{comment.statement_id}</title>)
end
Expand Down

0 comments on commit 2072235

Please sign in to comment.