Skip to content

Commit

Permalink
chore: fix no-unused-vars lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurki committed Nov 27, 2024
1 parent 2b95516 commit af3ee51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/resources-provider-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ module.exports = (server: ResourceProviderApp): Plugin => {
}
}
})
} catch (error) {
} catch (_error) {
failed.push(resType)
}
})
Expand Down
10 changes: 5 additions & 5 deletions packages/resources-provider-plugin/src/lib/filestorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class FileStore implements IResourceStore {

try {
await this.checkPath(this.savePath)
} catch (error) {
} catch (_error) {
throw new Error(`Unable to create ${this.savePath}!`)
}
return await this.createSavePaths(enabledResTypes)
Expand All @@ -74,13 +74,13 @@ export class FileStore implements IResourceStore {
try {
await access(this.resources[t].path, constants.W_OK | constants.R_OK)
this.debug(`${this.resources[t].path} - OK....`)
} catch (error) {
} catch (_error) {
this.debug(`${this.resources[t].path} NOT available...`)
this.debug(`Creating ${this.resources[t].path} ...`)
try {
await mkdir(this.resources[t].path, { recursive: true })
this.debug(`Created ${this.resources[t].path} - OK....`)
} catch (error) {
} catch (_error) {
result.error = true
result.message += `ERROR creating ${this.resources[t].path} folder\r\n `
}
Expand Down Expand Up @@ -217,15 +217,15 @@ export class FileStore implements IResourceStore {
)
this.debug(`${path} - OK...`)
return true
} catch (error) {
} catch (_error) {
// if not then create it
this.debug(`${path} does NOT exist...`)
this.debug(`Creating ${path} ...`)
try {
await mkdir(path, { recursive: true })
this.debug(`Created ${path} - OK...`)
return true
} catch (error) {
} catch (_error) {
throw new Error(`Unable to create ${path}!`)
}
}
Expand Down

0 comments on commit af3ee51

Please sign in to comment.