refactor: Accept unknown in errorToConsole to drop as Error casts (#2541)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent fcef48e75a
commit 95f35bd326
19 changed files with 32 additions and 27 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export class IssueStateManager implements IssueReadOnlyState {
} catch (e) {
// Isolate one issue's detection failure so it cannot abort detection
// for the rest; log so the cause is visible.
errorToConsole(e as Error);
errorToConsole(e);
}
this._logIfNew(issue);
}