Skip to content

Commit

Permalink
refactor/use val instead of def for gitCommit method
Browse files Browse the repository at this point in the history
  • Loading branch information
hongwei1 committed Sep 15, 2023
1 parent c21fdbc commit 29d28ec
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 29d28ec

Please sign in to comment.