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:
Tobias Nießen authored and Juan José Arboleda committed 2023-03-04 23:03:29 -05:00
1 parent 0f5f2d4470
commit 14da89f41a
1 file changed
+1 -4
+1 -4
View File
@@ -684,11 +684,8 @@ MaybeLocal<Value> StringBytes::Encode(Isolate* isolate,
}
default:
CHECK(0 && "unknown encoding");
break;
UNREACHABLE("unknown encoding");
}
UNREACHABLE();
}