Skip to content

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

Merged
merged 2 commits into from
Oct 11, 2017

Conversation

maartenvanvliet
Copy link
Contributor

Per #6643

File.cp_r!(source, target, fn orig, dest ->
File.stat!(orig).mtime > File.stat!(dest).mtime
end)
}
Copy link
Member

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.

Data does not match the given SHA-512 checksum.

Expected: #{expected}
Actual: #{actual}
"""}
"""
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@maartenvanvliet
Copy link
Contributor Author

Fixed


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"
Copy link
Member

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.

@josevalim
Copy link
Member

Hi @maartenvanvliet, there are a couple more comments from @whatyouhide and myself pending. Thank you!

@josevalim josevalim merged commit 2f26b5e into elixir-lang:master Oct 11, 2017
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants