diff options
author | Araq <rumpf_a@web.de> | 2018-08-08 12:01:17 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-08-08 12:01:17 +0200 |
commit | 00d718b1dbe9cf767f2d57cecbb175a92b99233e (patch) | |
tree | 8285e2e38774a7ab1b0abd9bd1b7ec8ad945f3dc /lib/pure | |
parent | de263a43c615199f66440d8d27fe4fb7da3435e3 (diff) | |
download | Nim-00d718b1dbe9cf767f2d57cecbb175a92b99233e.tar.gz |
strutils: minor code cleanup
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/strutils.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index f8c5f9a91..4aede541a 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -358,9 +358,6 @@ proc isNilOrEmpty*(s: string): bool {.noSideEffect, procvar, rtl, proc isNilOrWhitespace*(s: string): bool {.noSideEffect, procvar, rtl, extern: "nsuIsNilOrWhitespace".} = ## Checks if `s` is nil or consists entirely of whitespace characters. - if len(s) == 0: - return true - result = true for c in s: if not c.isSpaceAscii(): @@ -908,7 +905,7 @@ proc parseOctInt*(s: string): int {.noSideEffect, ## `s` are ignored. let L = parseutils.parseOct(s, result, 0) if L != s.len or L == 0: - raise newException(ValueError, "invalid oct integer: " & s) + raise newException(ValueError, "invalid oct integer: " & s) proc parseHexInt*(s: string): int {.noSideEffect, procvar, rtl, extern: "nsuParseHexInt".} = |