Skip to content

Commit

Permalink
Fix dialyzer warnings for unmatched returns
Browse files Browse the repository at this point in the history
Simply suppressed by assigning to _
  • Loading branch information
mbuhot committed Oct 24, 2019
1 parent 9183f21 commit 7de1516
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/ecto_job/migrations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@ defmodule EctoJob.Migrations do
timestamps(timestamp_opts)
end

case version do
2 ->
create(index(name, [:schedule, :id]))
3 ->
create(index(name, [:priority, :schedule, :id]))
end
_ =
case version do
2 ->
create(index(name, [:schedule, :id]))
3 ->
create(index(name, [:priority, :schedule, :id]))
end

execute("""
CREATE TRIGGER tr_notify_inserted_#{name}
Expand Down Expand Up @@ -147,7 +148,7 @@ defmodule EctoJob.Migrations do
Rollback updates from job queue table with the given ecto job version and name.
"""
def down(3, name) do
drop(index(name, [:priority, :schedule, :id]))
_ = drop(index(name, [:priority, :schedule, :id]))

alter table(name) do
remove(:priority)
Expand Down

0 comments on commit 7de1516

Please sign in to comment.