-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Run code formatter on lib/mix/lib/mix/utils.ex #6872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/mix/lib/mix/utils.ex
Outdated
File.cp_r!(source, target, fn orig, dest -> | ||
File.stat!(orig).mtime > File.stat!(dest).mtime | ||
end) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extract to variables and write the tuple on a single line as described in #6643.
lib/mix/lib/mix/utils.ex
Outdated
Data does not match the given SHA-512 checksum. | ||
|
||
Expected: #{expected} | ||
Actual: #{actual} | ||
"""} | ||
""" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
22db6b1
to
2229914
Compare
Fixed |
lib/mix/lib/mix/utils.ex
Outdated
|
||
case :elixir_utils.read_mtime_and_size(path) do | ||
{:ok, mtime, size} when mtime > now -> | ||
Mix.shell.error("warning: mtime (modified time) for \"#{path}\" was set to the future, resetting to now") | ||
Mix.shell().error( | ||
"warning: mtime (modified time) for \"#{path}\" was set to the future, resetting to now" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extract the message to a variable.
Hi @maartenvanvliet, there are a couple more comments from @whatyouhide and myself pending. Thank you! |
❤️ 💚 💙 💛 💜 |
Per #6643