Skip to content

Commit 14da89f

Browse files
tniessenjuanarbol
authored andcommitted
src: remove unreachable UNREACHABLE
All paths leading up to this UNREACHABLE either return or abort. (If they did not, the compiler would at least emit a warning.) PR-URL: #46281 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 0f5f2d4 commit 14da89f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/string_bytes.cc

+1-4
Original file line numberDiff line numberDiff line change
@@ -684,11 +684,8 @@ MaybeLocal<Value> StringBytes::Encode(Isolate* isolate,
684684
}
685685

686686
default:
687-
CHECK(0 && "unknown encoding");
688-
break;
687+
UNREACHABLE("unknown encoding");
689688
}
690-
691-
UNREACHABLE();
692689
}
693690

694691

0 commit comments

Comments
 (0)