Skip to content

Commit

Permalink
util: deleted unreachable code from util.inspect
Browse files Browse the repository at this point in the history
PR-URL: #24187
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
kiyomizumia authored and BridgeAR committed Nov 13, 2018
1 parent 7fc9107 commit 953697a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/internal/util/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,8 @@ function strEscape(str) {
last = i + 1;
}
}
if (last === 0) {
result = str;
} else if (last !== i) {

if (last !== i) {
result += str.slice(last);
}
return addQuotes(result, singleQuote);
Expand Down

0 comments on commit 953697a

Please sign in to comment.