mirror of
https://github.com/nodejs/node.git
synced 2026-12-04 02:19:15 -05:00
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: https://github.com/nodejs/node/pull/46281 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
0f5f2d4470
commit
14da89f41a
1 file changed
+1
-4
+1
-4
@@ -684,11 +684,8 @@ MaybeLocal<Value> StringBytes::Encode(Isolate* isolate,
|
||||
}
|
||||
|
||||
default:
|
||||
CHECK(0 && "unknown encoding");
|
||||
break;
|
||||
UNREACHABLE("unknown encoding");
|
||||
}
|
||||
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user