Skip to content

Commit

Permalink
fix: make passing location always optional
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Feb 9, 2024
1 parent 94d4b02 commit 06f7fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/synchronizer/src/utils/projectSynchronizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class ProjectSynchronizer extends EventEmitter {
return this._dataCache[this.getCacheId(rootPath, projectSlug)]?.suppressions ?? [];
}

async toggleSuppression(tokenInfo: TokenInfo, fingerprint: string, description: string, location: string, rootPath: string, projectSlug?: string) {
async toggleSuppression(tokenInfo: TokenInfo, fingerprint: string, description: string, location: string | undefined, rootPath: string, projectSlug?: string) {
if (!tokenInfo?.accessToken?.length) {
throw new Error('Cannot use suppressions without access token.');
}
Expand Down

0 comments on commit 06f7fd3

Please sign in to comment.