Skip to content

Commit

Permalink
Fix implicit any error
Browse files Browse the repository at this point in the history
  • Loading branch information
2colours committed Jan 10, 2025
1 parent 0cceb55 commit e89ccdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const setupCommands = (commandList: CommandDataEntries, defPermission: boolean)
}).map(command => command.toJSON());

const commandsCache = await readFile(commandsCachePath, { encoding: 'utf-8' })
.then(data => JSON.parse(data), _ => null)
.then(data => JSON.parse(data), _ => null as null)
?? {};
async function installGlobalCommands(commands: unknown): Promise<boolean> { //érték: cache frissül vagy nem
const commandsHashed = createHash(hashAlgorithm)
Expand Down

0 comments on commit e89ccdf

Please sign in to comment.