fix: remove unused variables (#7968)

This commit is contained in:
Don Isaac
2024-08-26 02:23:56 -04:00
committed by GitHub
parent 14066965fa
commit dbcfd24ed8
18 changed files with 18 additions and 18 deletions
@@ -83,7 +83,7 @@ export class AuthService implements OnApplicationBootstrap {
await this.quota.switchUserQuota(devUser.id, QuotaType.ProPlanV1);
await this.feature.addAdmin(devUser.id);
await this.feature.addCopilot(devUser.id);
} catch (e) {
} catch {
// ignore
}
}
@@ -69,7 +69,7 @@ export class QuotaService {
...quota,
feature: await QuotaConfig.get(this.prisma, quota.featureId),
};
} catch (_) {}
} catch {}
return null as unknown as typeof quota & {
feature: QuotaConfig;
};
@@ -21,7 +21,7 @@ export class DocID {
static parse(raw: string): DocID | null {
try {
return new DocID(raw);
} catch (e) {
} catch {
return null;
}
}
@@ -140,7 +140,7 @@ export class WorkspacesController {
let ts;
try {
ts = new Date(timestamp);
} catch (e) {
} catch {
throw new InvalidHistoryTimestamp({ timestamp });
}