diff options
author | Araq <rumpf_a@web.de> | 2018-08-22 15:12:02 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-08-22 15:12:02 +0200 |
commit | dbd21d670c754501e1c14c758e09c9fce3ad01d5 (patch) | |
tree | 0adc7fbb281a4c79163f840353c153fbd42405a2 /tools/nimgrep.nim | |
parent | 7896903fd09ee5c855112660179b6f4ec57a1977 (diff) | |
download | Nim-dbd21d670c754501e1c14c758e09c9fce3ad01d5.tar.gz |
make more things compile without isNil
Diffstat (limited to 'tools/nimgrep.nim')
-rw-r--r-- | tools/nimgrep.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nimgrep.nim b/tools/nimgrep.nim index 9cfd7a86f..8c6353e31 100644 --- a/tools/nimgrep.nim +++ b/tools/nimgrep.nim @@ -315,7 +315,7 @@ checkOptions({optFilenames, optReplace}, "filenames", "replace") if optStdin in options: pattern = ask("pattern [ENTER to exit]: ") - if isNil(pattern) or pattern.len == 0: quit(0) + if pattern.len == 0: quit(0) if optReplace in options: replacement = ask("replacement [supports $1, $# notations]: ") |