Fix tests & remove code smell

This commit is contained in:
Nicolas Meienberger 2022-05-17 18:57:54 +02:00
parent 1eec46494c
commit f72f42de85
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@ on:
env:
ROOT_FOLDER: /test
JWT_SECRET: "secret"
ROOT_FOLDER_HOST: /tipi
jobs:
ci:

View file

@ -65,7 +65,7 @@ const getMemoryInfo = async (req: Request, res: Response<MemoryData>) => {
res.status(200).json(result);
};
const getVersion = async (req: Request, res: Response<{ current: string; latest: string }>) => {
const getVersion = async (_: Request, res: Response<{ current: string; latest: string }>) => {
let version = TipiCache.get<string>('latestVersion');
if (!version) {