Skip to content

Commit

Permalink
lint: remove any cast on window
Browse files Browse the repository at this point in the history
  • Loading branch information
littletof authored and c4spar committed May 30, 2021
1 parent 5c35a30 commit a74ae81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt/_generic_suggestions.ts
Expand Up @@ -87,7 +87,7 @@ export abstract class GenericSuggestions<
// Keep support for deno < 1.10.
if (this.settings.id && "localStorage" in window) {
try {
return (window as any).localStorage;
return window.localStorage;
} catch (_) {
// Ignore error if --location is not set.
}
Expand Down

0 comments on commit a74ae81

Please sign in to comment.