Skip to content

Commit c31f1c0

Browse files
committed
refactor: remove default parameter values in new code
1 parent cd8e1df commit c31f1c0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Query/Filter/Field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export abstract class Field {
280280
* For now, parsing of `group by` lines is currently done in {@link FilterParser.parseGrouper()}.
281281
* Later, this will probably be moved to the {@link Field} classes.
282282
*/
283-
public createGrouper(reverse: boolean = false): Grouper {
283+
public createGrouper(reverse: boolean): Grouper {
284284
return new Grouper(this.fieldNameSingular(), this.grouper(), reverse);
285285
}
286286

src/Query/Filter/MultiTextField.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export abstract class MultiTextField extends TextField {
6363
/**
6464
* This overloads {@link Field.createGrouper} to put a plural field name in the {@link Grouper.property}.
6565
*/
66-
public createGrouper(reverse: boolean = false): Grouper {
66+
public createGrouper(reverse: boolean): Grouper {
6767
return new Grouper(this.fieldNamePlural(), this.grouper(), reverse);
6868
}
6969

src/Query/Grouper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class Grouper {
3636

3737
public readonly reverse: boolean;
3838

39-
constructor(property: string, grouper: GrouperFunction, reverse: boolean = false) {
39+
constructor(property: string, grouper: GrouperFunction, reverse: boolean) {
4040
this.property = property;
4141
this.grouper = grouper;
4242
this.reverse = reverse;

0 commit comments

Comments
 (0)