mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-16 22:11:18 +00:00
remove unneeded check on length
This commit is contained in:
@@ -152,7 +152,7 @@ proc findExe*(exe: string, followSymlinks: bool = true;
|
||||
for candidate in split(path, PathSep):
|
||||
if candidate.len == 0: continue
|
||||
when defined(windows):
|
||||
var x = (if candidate.len > 2 and candidate[0] == '"' and candidate[^1] == '"':
|
||||
var x = (if candidate[0] == '"' and candidate[^1] == '"':
|
||||
substr(candidate, 1, candidate.len-2) else: candidate) /
|
||||
exe
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user