Skip to content

Commit d8c8fcb

Browse files
committed
concat with Sprintf
1 parent 416ab0f commit d8c8fcb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/config/flavor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package config
22

33
import (
4+
"fmt"
45
"os"
56
"path/filepath"
67

@@ -23,7 +24,7 @@ func SetDefaultHoverYamlFile() {
2324
// SetHoverFlavor sets the user defined hover flavor.
2425
// eg. hover-develop.yaml, hover-staging.yaml, etc.
2526
func SetHoverFlavor(flavor string) {
26-
hoverYaml = "hover-" + flavor + ".yaml"
27+
hoverYaml = fmt.Sprintf("hover-%s.yaml", flavor)
2728
assertYamlFileExists(hoverYaml)
2829
}
2930

0 commit comments

Comments
 (0)