Skip to content

Commit 054571d

Browse files
committed
Fix warning typescript-eslint/no-non-null-assertion
1 parent f1cf97f commit 054571d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DataSource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export class DataSource extends DataSourceApi<MyQuery> {
3939

4040
async query(options: DataQueryRequest<MyQuery>): Promise<DataQueryResponse> {
4141
const { range } = options;
42-
const from = range!.from.unix();
43-
const to = range!.to.unix();
42+
const from = range.from.unix();
43+
const to = range.to.unix();
4444

4545
const promises = options.targets.map((target) => {
4646
const query = defaults(target, defaultQuery);

0 commit comments

Comments
 (0)