Skip to content

Commit b39202f

Browse files
crisbetommalerba
authored andcommitted
chore: fix lint error (#8136)
Fixes a few linting errors
1 parent f6b80f4 commit b39202f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/lib/core/datetime/date-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export abstract class DateAdapter<D> {
245245
let firstValid = this.isValid(first);
246246
let secondValid = this.isValid(second);
247247
if (firstValid && secondValid) {
248-
return !this.compareDate(first, second)
248+
return !this.compareDate(first, second);
249249
}
250250
return firstValid == secondValid;
251251
}

src/lib/core/datetime/native-date-adapter.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ describe('NativeDateAdapter', () => {
1818
}).compileComponents();
1919
}));
2020

21-
beforeEach(inject([DateAdapter], (d: NativeDateAdapter) => {
22-
adapter = d;
21+
beforeEach(inject([DateAdapter], (dateAdapter: NativeDateAdapter) => {
22+
adapter = dateAdapter;
2323

2424
assertValidDate = (d: Date | null, valid: boolean) => {
2525
expect(adapter.isDateInstance(d)).not.toBeNull(`Expected ${d} to be a date instance`);
2626
expect(adapter.isValid(d!)).toBe(valid,
2727
`Expected ${d} to be ${valid ? 'valid' : 'invalid'},` +
2828
` but was ${valid ? 'invalid' : 'valid'}`);
29-
}
29+
};
3030
}));
3131

3232
it('should get year', () => {

src/material-moment-adapter/adapter/moment-date-adapter.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ describe('MomentDateAdapter', () => {
2424
}).compileComponents();
2525
}));
2626

27-
beforeEach(inject([DateAdapter], (d: MomentDateAdapter) => {
27+
beforeEach(inject([DateAdapter], (dateAdapter: MomentDateAdapter) => {
2828
moment.locale('en');
29-
adapter = d;
29+
adapter = dateAdapter;
3030
adapter.setLocale('en');
3131

3232
assertValidDate = (d: moment.Moment | null, valid: boolean) => {
3333
expect(adapter.isDateInstance(d)).not.toBeNull(`Expected ${d} to be a date instance`);
3434
expect(adapter.isValid(d!)).toBe(valid,
3535
`Expected ${d} to be ${valid ? 'valid' : 'invalid'},` +
3636
` but was ${valid ? 'invalid' : 'valid'}`);
37-
}
37+
};
3838
}));
3939

4040
it('should get year', () => {

0 commit comments

Comments
 (0)