Skip to content

Commit 289546f

Browse files
guybedfordjasnell
andauthored
Apply suggestions from code review
Co-authored-by: James M Snell <[email protected]>
1 parent 2aa7e5f commit 289546f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/workerd/io/worker-fs.c++

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,6 @@ void writeStdio(jsg::Lock& js, VirtualFileSystem::Stdio type, kj::ArrayPtr<const
17571757
size_t endPos = chars.size();
17581758
if (endPos > 0 && chars[endPos - 1] == '\n') endPos--;
17591759

1760-
// KJ_LOG(WARNING, "writeStdio called", "content:", chars);
17611760

17621761
KJ_IF_SOME(console, js.global().get(js, "console"_kj).tryCast<jsg::JsObject>()) {
17631762
auto method = console.get(js, "log"_kj);
@@ -1767,7 +1766,7 @@ void writeStdio(jsg::Lock& js, VirtualFileSystem::Stdio type, kj::ArrayPtr<const
17671766

17681767
kj::String outputStr;
17691768
auto processStdioPrefixed = Worker::Isolate::from(js).getProcessStdioPrefixed();
1770-
if (processStdioPrefixed == ProcessStdioPrefixed::YES) {
1769+
if (processStdioPrefixed) {
17711770
if (endPos == 0) {
17721771
v8::Local<v8::Value> args[] = {
17731772
js.str(type == VirtualFileSystem::Stdio::OUT ? "stdout:"_kj : "stderr:"_kj)};

0 commit comments

Comments
 (0)