aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/output.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/output.js b/lib/output.js
index c8c8739f..ac9e0654 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -510,8 +510,8 @@ function OutputStream(options) {
}));
}
- if (comments.length > 0 && output.pos() == 0) {
- if (output.option("shebang") && comments[0].type == "comment5") {
+ if (output.pos() == 0) {
+ if (comments.length > 0 && output.option("shebang") && comments[0].type == "comment5") {
output.print("#!" + comments.shift().value + "\n");
output.indent();
}