fix logical expression

This commit is contained in:
Amjad Masad 2015-12-07 10:38:14 -08:00
parent 8689d1a045
commit 5b5cd761df

View File

@ -231,7 +231,8 @@ export default class Printer extends Buffer {
if (this.format.shouldPrintComment) {
return this.format.shouldPrintComment(comment.value);
} else {
if (!this.format.compact && comment.value.indexOf("@license") >= 0 || comment.value.indexOf("@preserve") >= 0) {
if (!this.format.compact &&
(comment.value.indexOf("@license") >= 0 || comment.value.indexOf("@preserve") >= 0)) {
return true;
} else {
return this.format.comments;