diff options
Diffstat (limited to 'modules/timeutil/executable.go')
-rw-r--r-- | modules/timeutil/executable.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/timeutil/executable.go b/modules/timeutil/executable.go index b0a3280753..1875b63349 100644 --- a/modules/timeutil/executable.go +++ b/modules/timeutil/executable.go @@ -13,8 +13,10 @@ import ( "code.gitea.io/gitea/modules/log" ) -var executablModTime = time.Now() -var executablModTimeOnce sync.Once +var ( + executablModTime = time.Now() + executablModTimeOnce sync.Once +) // GetExecutableModTime get executable file modified time of current process. func GetExecutableModTime() time.Time { |