We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d6303 commit 7ff3e1fCopy full SHA for 7ff3e1f
lib/iex/lib/iex/server.ex
@@ -91,7 +91,8 @@ defmodule IEx.Server do
91
# Locates and loads an .iex file from one of predefined locations. Returns
92
# new config.
93
defp load_dot_iex(config) do
94
- path = Enum.find [".iex", "~/.iex"], fn path -> File.regular?(Path.expand(path)) end
+ candidates = Enum.map [".iex", "~/.iex"], Path.expand(&1)
95
+ path = Enum.find candidates, fn path -> File.regular?(path) end
96
if nil?(path) do
97
config
98
else
0 commit comments