Skip to content

Commit

Permalink
fix: Remove unnecessary ?? operator (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyfa authored Sep 10, 2024
1 parent 474cce0 commit 5359660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/api/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5359660

Please sign in to comment.