Skip to content

Commit

Permalink
feat(backend): Fix a logging issue causes build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zhe-zhao committed May 13, 2021
1 parent ae391df commit 6b0d20d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class BuildRepository {
.with(Sort.by(Sort.Direction.DESC, PROP_NUMBER))
.limit(1)
val result = mongoTemplate.findOne<Build>(query, collectionName)
logger.info("Query result the most recent build in pipeline [$pipelineId] is [${result!!.number}]")
logger.info("Query result the most recent build in pipeline [$pipelineId] is [${result?.number}]")
return result
}

Expand Down

0 comments on commit 6b0d20d

Please sign in to comment.