diff --git a/tools/utils/buildmessage.js b/tools/utils/buildmessage.js index cfb1b1c0f3..650cf8e2b8 100644 --- a/tools/utils/buildmessage.js +++ b/tools/utils/buildmessage.js @@ -92,7 +92,7 @@ _.extend(Job.prototype, { // If a nontrivial stack trace (more than just the file and line // we already complained about), print it. var where = ""; - if (frame && frame.file) { + if (frame.file) { where += frame.file; if (frame.line) { where += ":" + frame.line; @@ -102,11 +102,11 @@ _.extend(Job.prototype, { } } - if (frame && ! frame.func && ! where) + if (! frame.func && ! where) return; // that's a pretty lame stack frame line += " at "; - if (frame && frame.func) + if (frame.func) line += frame.func + " (" + where + ")\n"; else line += where + "\n";