Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

chore(api): drop redundant return type on parseSampleRate

justindd632858936a
diff --git a/apps/api/src/instrument.ts b/apps/api/src/instrument.ts
index 72fe84b10..034e00d61 100644
--- a/apps/api/src/instrument.ts
+++ b/apps/api/src/instrument.ts
@@ -2,7 +2,7 @@ import { readFileSync } from "node:fs";
import * as Sentry from "@sentry/node";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
-function parseSampleRate(value: string | undefined): number {
+function parseSampleRate(value: string | undefined) {
const n = Number(value);
return Number.isFinite(n) && n >= 0 && n <= 1 ? n : 0;
}