aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2018-12-07 09:46:13 +0300
committerrinpatch <rinpatch@sdf.org>2018-12-07 09:46:13 +0300
commit08e10a70ec8752b30010389c0f5e14105fc58c3e (patch)
tree57a32ecca2c76649863d364ba3d06c7b771277a3
parent1d11c4cf11e27992c6b79731015456a954307e8f (diff)
downloadpleroma-08e10a70ec8752b30010389c0f5e14105fc58c3e.tar.gz
Rename def to defval
-rw-r--r--lib/mix/tasks/pleroma/common.ex10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mix/tasks/pleroma/common.ex b/lib/mix/tasks/pleroma/common.ex
index 2e246c4b5..06893af05 100644
--- a/lib/mix/tasks/pleroma/common.ex
+++ b/lib/mix/tasks/pleroma/common.ex
@@ -4,13 +4,13 @@ defmodule Mix.Tasks.Pleroma.Common do
Mix.Task.run("app.start")
end
- def get_option(options, opt, prompt, def \\ nil, defname \\ nil) do
+ def get_option(options, opt, prompt, defval \\ nil, defname \\ nil) do
Keyword.get(options, opt) ||
- case Mix.shell().prompt("#{prompt} [#{defname || def}]") do
+ case Mix.shell().prompt("#{prompt} [#{defname || defval}]") do
"\n" ->
- case def do
- nil -> get_option(options, opt, prompt, def)
- def -> def
+ case defval do
+ nil -> get_option(options, opt, prompt, defval)
+ defval -> defval
end
opt ->