Skip to content

Commit c6557d8

Browse files
mok-lieesisimomo
andauthored
style: change style of if statement
Co-authored-by: Simon Vallières <[email protected]>
1 parent b957d4c commit c6557d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/comparators.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export abstract class Comparator implements Item {
77
constructor(protected selector: Function | string, protected comparatorKeyWord: string, protected value?: string | number) {}
88

99
toString(): string {
10-
if (typeof this.value === 'undefined' || this.value === null) return `${this.selector} ${this.comparatorKeyWord}`;
10+
if (typeof this.value === 'undefined' || this.value === null) {
11+
return `${this.selector} ${this.comparatorKeyWord}`;
12+
}
1113
if (typeof this.value === 'number') {
1214
return `${this.selector} ${this.comparatorKeyWord} ${this.value}`;
1315
} else {

0 commit comments

Comments
 (0)