From 53596602c161833de2c6803fe855f8b17e814fce Mon Sep 17 00:00:00 2001 From: Fabian Meyer <3982806+meyfa@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:35:52 +0200 Subject: [PATCH] fix: Remove unnecessary `??` operator (#107) --- backend/src/api/jobs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/jobs.ts b/backend/src/api/jobs.ts index 5e3bf3f..1ba56c7 100644 --- a/backend/src/api/jobs.ts +++ b/backend/src/api/jobs.ts @@ -43,7 +43,7 @@ function project (job: V1Job): JobsItem { const isSuccess = typeof job.status?.succeeded === 'number' && job.status.succeeded > 0 const isActive = typeof job.status?.active === 'number' && job.status.active > 0 - const isManual = job.metadata?.annotations?.[ForemanAnnotations.Manual] === 'true' ?? false + const isManual = job.metadata?.annotations?.[ForemanAnnotations.Manual] === 'true' const repositoryScope = job.metadata?.annotations?.[ForemanAnnotations.RepositoryScope] const debugLogging = job.metadata?.annotations?.[ForemanAnnotations.DebugLogging] != null ? job.metadata.annotations[ForemanAnnotations.DebugLogging] === 'true'