Skip to content

Commit 49b3b6f

Browse files
committed
Fix illogical order
1 parent 077d5dc commit 49b3b6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/core/src/Auth/Source/SourceIPSelector.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ protected function selectAuthSource(/** @scrutinizer ignore-unused */ array &$st
110110
}
111111
}
112112

113-
if ($source === $this->defaultSource) {
114-
Logger::info("core:SourceIPSelector: no match on client IP; selecting default zone");
115-
}
116-
117113
if ($source === null) {
118114
throw new Error\NotFound();
119115
}
120116

117+
if ($source === $this->defaultSource) {
118+
Logger::info("core:SourceIPSelector: no match on client IP; selecting default zone");
119+
}
120+
121121
return $source;
122122
}
123123
}

0 commit comments

Comments
 (0)