Skip to content

Commit

Permalink
Address a couple compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed May 10, 2023
1 parent a31058d commit 5524bd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/changelog/schema/episode/episode.ex
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ defmodule Changelog.Episode do
def with_podcast_slug(query, nil), do: query

def with_podcast_slug(query, slug),
do: from(q in query, join: p in Podcast, where: q.podcast_id == p.id, where: p.slug == ^slug)
do: from(q in query, join: p in Podcast, on: true, where: q.podcast_id == p.id, where: p.slug == ^slug)

def with_transcript(query \\ __MODULE__),
do: from(q in query, where: fragment("? != '{}'", q.transcript))
Expand Down
3 changes: 1 addition & 2 deletions lib/changelog_web/controllers/admin/person_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ defmodule ChangelogWeb.Admin.PersonController do
|> redirect_next(params, Routes.admin_person_path(conn, :index))
end

def masq(conn = %{assigns: %{person: person}}, params) do

def masq(conn = %{assigns: %{person: person}}, _params) do
conn
|> put_session("id", person.id)
|> configure_session(renew: true)
Expand Down

0 comments on commit 5524bd9

Please sign in to comment.