Skip to content

Commit dbcfd24

Browse files
authored
fix: remove unused variables (#7968)
1 parent 1406696 commit dbcfd24

File tree

18 files changed

+18
-18
lines changed

18 files changed

+18
-18
lines changed

packages/backend/server/src/core/auth/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class AuthService implements OnApplicationBootstrap {
8383
await this.quota.switchUserQuota(devUser.id, QuotaType.ProPlanV1);
8484
await this.feature.addAdmin(devUser.id);
8585
await this.feature.addCopilot(devUser.id);
86-
} catch (e) {
86+
} catch {
8787
// ignore
8888
}
8989
}

packages/backend/server/src/core/quota/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class QuotaService {
6969
...quota,
7070
feature: await QuotaConfig.get(this.prisma, quota.featureId),
7171
};
72-
} catch (_) {}
72+
} catch {}
7373
return null as unknown as typeof quota & {
7474
feature: QuotaConfig;
7575
};

packages/backend/server/src/core/utils/doc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class DocID {
2121
static parse(raw: string): DocID | null {
2222
try {
2323
return new DocID(raw);
24-
} catch (e) {
24+
} catch {
2525
return null;
2626
}
2727
}

packages/backend/server/src/core/workspaces/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class WorkspacesController {
140140
let ts;
141141
try {
142142
ts = new Date(timestamp);
143-
} catch (e) {
143+
} catch {
144144
throw new InvalidHistoryTimestamp({ timestamp });
145145
}
146146

packages/backend/server/src/fundamentals/helpers/url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class URLHelper {
8989
if (!['http:', 'https:'].includes(url.protocol)) return false;
9090
if (!url.hostname) return false;
9191
return true;
92-
} catch (_) {
92+
} catch {
9393
return false;
9494
}
9595
}

packages/backend/server/src/fundamentals/storage/providers/fs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class FsStorageProvider implements StorageProvider {
123123
});
124124
}
125125
}
126-
} catch (e) {
126+
} catch {
127127
// failed to read dir, stop recursion
128128
}
129129
}

packages/backend/server/src/fundamentals/storage/providers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function autoMetadata(
4242
}
4343

4444
return metadata;
45-
} catch (e) {
45+
} catch {
4646
return metadata;
4747
}
4848
}

packages/backend/server/src/plugins/copilot/workflow/executor/check-html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class CopilotCheckHtmlExecutor extends AutoRegisteredWorkflowExecutor {
4343
}
4444
}
4545
return false;
46-
} catch (e) {
46+
} catch {
4747
return false;
4848
}
4949
}

packages/backend/server/src/plugins/copilot/workflow/executor/check-json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class CopilotCheckJsonExecutor extends AutoRegisteredWorkflowExecutor {
3434
return true;
3535
}
3636
return false;
37-
} catch (e) {
37+
} catch {
3838
return false;
3939
}
4040
}

packages/common/infra/src/app-config-storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Storage<T extends object> {
6464
return this._options.config;
6565
}
6666
return cfg;
67-
} catch (err) {
67+
} catch {
6868
return this._cfg;
6969
}
7070
} else {

0 commit comments

Comments
 (0)