mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-21 13:05:50 +01:00
Remove other usages of : any
This commit is contained in:
@@ -38,7 +38,7 @@ function findInvalid(arr: string[], predicate = (v: string) => !/[a-f0-9]{64}/.t
|
||||
return arr.find(predicate);
|
||||
}
|
||||
|
||||
function die(code: number, ...args: any[]) {
|
||||
function die(code: number, ...args: unknown[]) {
|
||||
console.error(...args);
|
||||
Deno.exit(code);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Conf } from '@/config.ts';
|
||||
import pngToIco from 'png-to-ico';
|
||||
import { Storages } from '@/storages.ts';
|
||||
|
||||
function die(code: number, ...args: any[]) {
|
||||
function die(code: number, ...args: unknown[]) {
|
||||
console.error(...args);
|
||||
Deno.exit(code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user