Skip to content

Commit 2c69620

Browse files
committed
Fix credo issue
1 parent 7a13e0d commit 2c69620

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/expert/lib/expert/state.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ defmodule Expert.State do
194194
config = state.configuration
195195

196196
state =
197-
if not is_nil(project) do
197+
if is_nil(project) do
198+
state
199+
else
198200
maybe_start_project(project, config)
199201
config = Configuration.add_project(config, project)
200202
%__MODULE__{state | configuration: config}
201-
else
202-
state
203203
end
204204

205205
case Document.Store.open(uri, text, version, language_id) do

0 commit comments

Comments
 (0)