Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bertran committed Aug 22, 2024
1 parent 3742eb7 commit c0ace83
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class Log {
this.psql = this.psql.bind(this);
try {
accessSync(resolvePath, constants.F_OK);
} catch (___) {
} catch {
try {
mkdirSync(resolvePath);
} catch (e: any) {
Expand Down
2 changes: 1 addition & 1 deletion src/api/plugins/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export async function exposeInMainWorld(apiKey: string, api: unknown): Promise<v
}
try {
contextBridge.exposeInMainWorld(apiKey, api);
} catch (___) {
} catch {
throw new Error(`${apiKey} channel is already registered. The closest available channel is ${apiKey}_0`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/readLastLines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class {
throw new Error(`The number of lines read must be between 1 and Infinity, current ${nLines}`);
try {
accessSync(this.config.path, constants.R_OK);
} catch (e) {
} catch {
throw new Error(`File not exist ${this.config.path}`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/builtin/trigger/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class trigger {
try {
if (existsSync(link))
rm(link, { recursive: true });
} catch (___) {
} catch {
/// make nothing
}
await fs.removeLine(this.datapackDir.detect, occ);
Expand Down
2 changes: 1 addition & 1 deletion src/electron/api/shell/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class Shell {

try {
watch(process.env.APP_DATA).close();
} catch (err) {
} catch {
ipcRenderer.send('window::crash', 'NodeJS.fs.watch api is unavailable. Are you running Windows, Mac or Linux ?');
}

Expand Down

0 comments on commit c0ace83

Please sign in to comment.