From 1b5a96727ceb38258f2f89d7cf91193c0c51b614 Mon Sep 17 00:00:00 2001 From: Jo Asplin Date: Tue, 14 Nov 2023 15:00:04 +0100 Subject: [PATCH] Fixed go-fmt problem --- datastore/common/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datastore/common/common.go b/datastore/common/common.go index 98ceeda..34d736b 100644 --- a/datastore/common/common.go +++ b/datastore/common/common.go @@ -166,7 +166,7 @@ func GetValidTimeRangeSettings() string { // ToSnakeCase returns the snake case version of s. func ToSnakeCase(s string) string { - snake := matchFirstCap.ReplaceAllString(s, "${1}_${2}") - snake = matchAllCap.ReplaceAllString(snake, "${1}_${2}") - return strings.ToLower(snake) + snake := matchFirstCap.ReplaceAllString(s, "${1}_${2}") + snake = matchAllCap.ReplaceAllString(snake, "${1}_${2}") + return strings.ToLower(snake) }