aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikola Knezevic <nikola@dfinity.org>2020-01-06 16:30:56 +0100
committerNikola Knezevic <nikola@dfinity.org>2020-01-07 00:09:58 +0100
commitcb2d348d48cfd66fa34edd5df8c255cf74170a84 (patch)
tree953601f805a1f1feac4951dc5659de5811c8cea8
parentbc22a7ee6a6d9367f3197cf31a5fdd477b155974 (diff)
Remove redundant check in parseJSONString
-rw-r--r--src/libexpr/json-to-value.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libexpr/json-to-value.cc b/src/libexpr/json-to-value.cc
index 8bae986f9..96cd0fc72 100644
--- a/src/libexpr/json-to-value.cc
+++ b/src/libexpr/json-to-value.cc
@@ -22,7 +22,6 @@ static string parseJSONString(const char * & s)
if (*s == '"') res += '"';
else if (*s == '\\') res += '\\';
else if (*s == '/') res += '/';
- else if (*s == '/') res += '/';
else if (*s == 'b') res += '\b';
else if (*s == 'f') res += '\f';
else if (*s == 'n') res += '\n';