fix(core): Fix type errors (no-changelog) (#9571)

This commit is contained in:
Danny Martini
2024-05-31 14:06:13 +02:00
committed by GitHub
parent 400c005866
commit 8da0d6e9ba
22 changed files with 30 additions and 42 deletions

View File

@@ -3,7 +3,7 @@ import { Container } from 'typedi';
import { isSourceControlLicensed } from '../sourceControlHelper.ee';
import { SourceControlPreferencesService } from '../sourceControlPreferences.service.ee';
export const sourceControlLicensedAndEnabledMiddleware: RequestHandler = (req, res, next) => {
export const sourceControlLicensedAndEnabledMiddleware: RequestHandler = (_req, res, next) => {
const sourceControlPreferencesService = Container.get(SourceControlPreferencesService);
if (sourceControlPreferencesService.isSourceControlLicensedAndEnabled()) {
next();
@@ -19,7 +19,7 @@ export const sourceControlLicensedAndEnabledMiddleware: RequestHandler = (req, r
}
};
export const sourceControlLicensedMiddleware: RequestHandler = (req, res, next) => {
export const sourceControlLicensedMiddleware: RequestHandler = (_req, res, next) => {
if (isSourceControlLicensed()) {
next();
} else {