Skip to content

Commit 841c66c

Browse files
committed
Remove typecasting for factories
To produce valid history items and have them blow up when we need to add new fields.
1 parent d610701 commit 841c66c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/ql-vscode/src/vscode-tests/factories/remote-queries/remote-query-history-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ export function createMockRemoteQueryHistoryItem({
3737
repositoryCount,
3838
},
3939
userSpecifiedLabel,
40-
} as unknown) as RemoteQueryHistoryItem;
40+
});
4141
}

extensions/ql-vscode/src/vscode-tests/factories/remote-queries/variant-analysis-history-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export function createMockVariantAnalysisHistoryItem(
1818
completed: false,
1919
variantAnalysis: createMockVariantAnalysis(variantAnalysisStatus),
2020
userSpecifiedLabel,
21-
} as unknown) as VariantAnalysisHistoryItem;
21+
});
2222
}
2323

0 commit comments

Comments
 (0)