strutils: minor code cleanup

This commit is contained in:
Araq 2018-08-08 12:01:17 +02:00
commit 00d718b1db

View file

@ -358,9 +358,6 @@ proc isNilOrEmpty*(s: string): bool {.noSideEffect, procvar, rtl,
proc isNilOrWhitespace*(s: string): bool {.noSideEffect, procvar, rtl, extern: "nsuIsNilOrWhitespace".} = proc isNilOrWhitespace*(s: string): bool {.noSideEffect, procvar, rtl, extern: "nsuIsNilOrWhitespace".} =
## Checks if `s` is nil or consists entirely of whitespace characters. ## Checks if `s` is nil or consists entirely of whitespace characters.
if len(s) == 0:
return true
result = true result = true
for c in s: for c in s:
if not c.isSpaceAscii(): if not c.isSpaceAscii():