From a2e374f8041c0108e1eac8aeabedca7808e53f0c Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Wed, 18 Jan 2023 14:15:00 -0300 Subject: [PATCH] api: nit return next --- packages/api/src/controllers/experiment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/controllers/experiment.ts b/packages/api/src/controllers/experiment.ts index e75d4ab41e..d995f5a307 100644 --- a/packages/api/src/controllers/experiment.ts +++ b/packages/api/src/controllers/experiment.ts @@ -46,7 +46,7 @@ const experimentSubjectsOnly = if (!isSubject) { throw new ForbiddenError("user is not an experiment subject"); } - next(); + return next(); }; for (const [experiment, api] of Object.entries(experimentApis)) {