fix logical expression
This commit is contained in:
parent
8689d1a045
commit
5b5cd761df
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user