Clean up more
This commit is contained in:
parent
6a09fc358e
commit
9b4b4bcbc5
1 changed files with 2 additions and 2 deletions
|
|
@ -294,8 +294,8 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
|
|||
echo repr(options.searchPaths)
|
||||
lists.excludePath(options.searchPaths, path)
|
||||
lists.excludePath(options.lazyPaths, path)
|
||||
if (len(path) > 0) and (path[len(path) - 1] == DirSep)::
|
||||
let strippedPath = removeTrailingDirSep(path)
|
||||
if (len(path) > 0) and (path[len(path) - 1] == DirSep):
|
||||
let strippedPath = path[0 .. (len(path) - 2)]
|
||||
lists.excludePath(options.searchPaths, strippedPath)
|
||||
lists.excludePath(options.lazyPaths, strippedPath)
|
||||
echo repr(options.searchPaths)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue