mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
fix: set error types to any
This commit is contained in:
parent
3e21ec0c82
commit
3263596ac4
7 changed files with 67 additions and 25 deletions
|
@ -134,7 +134,7 @@ export function fileExistsSync(path: string): boolean {
|
|||
let stats: fs.Stats
|
||||
try {
|
||||
stats = fs.statSync(path)
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
if (error.code === 'ENOENT') {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue