Skip to content

Commit

Permalink
Fixed go-fmt problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-asplin-met-no committed Nov 14, 2023
1 parent 14df5f0 commit 1b5a967
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datastore/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 1b5a967

Please sign in to comment.