Skip to content

Commit

Permalink
fix(format): Avoid mix format task of non generative tasks (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancgalvis authored Aug 14, 2024
1 parent 11ba6b4 commit 6d0d2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mix/tasks/ca.base.task.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Mix.Tasks.Ca.BaseTask do
@switches unquote(opts[:switches] || [])
@aliases unquote(opts[:aliases] || [])
@name unquote(opts[:name])
@format unquote(opts[:format] || true)
@format unquote(if opts[:format] == false, do: false, else: true)

@impl Mix.Task
def run([help]) when help in ~w(-h --help) do
Expand Down

0 comments on commit 6d0d2c6

Please sign in to comment.