Skip to content

Commit

Permalink
Merge pull request #2271 from hongwei1/refactor/ChangeGitCommit
Browse files Browse the repository at this point in the history
refactor/use val instead of def for gitCommit method
  • Loading branch information
simonredfern committed Sep 15, 2023
2 parents 705c62d + 29d28ec commit 8f66846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obp-api/src/main/scala/code/api/util/APIUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
/*
Return the git commit. If we can't for some reason (not a git root etc) then log and return ""
*/
def gitCommit : String = {
lazy val gitCommit : String = {
val commit = try {
val properties = new java.util.Properties()
logger.debug("Before getResourceAsStream git.properties")
Expand Down

0 comments on commit 8f66846

Please sign in to comment.