From cb2d348d48cfd66fa34edd5df8c255cf74170a84 Mon Sep 17 00:00:00 2001 From: Nikola Knezevic Date: Mon, 6 Jan 2020 16:30:56 +0100 Subject: [PATCH] Remove redundant check in parseJSONString --- src/libexpr/json-to-value.cc | 1 - 1 file changed, 1 deletion(-) 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';