Skip to content

Commit 73621e1

Browse files
committed
run gofmt
1 parent 540b730 commit 73621e1

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

monstache.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2544,17 +2544,17 @@ func (config *configOptions) loadEnvironment() *configOptions {
25442544
}
25452545

25462546
func (config *configOptions) loadVariableValueFromFile(name string, path string) (n string, v string, err error) {
2547-
name = strings.TrimSuffix(name, "__FILE")
2548-
f, err := os.Open(path)
2549-
if err != nil {
2550-
return name, "", fmt.Errorf("read value for %s from file failed: %s", name, err)
2551-
}
2552-
defer f.Close()
2553-
c, err := ioutil.ReadAll(f)
2554-
if err != nil {
2555-
return name, "", fmt.Errorf("read value for %s from file failed: %s", name, err)
2556-
}
2557-
return name, string(c), nil
2547+
name = strings.TrimSuffix(name, "__FILE")
2548+
f, err := os.Open(path)
2549+
if err != nil {
2550+
return name, "", fmt.Errorf("read value for %s from file failed: %s", name, err)
2551+
}
2552+
defer f.Close()
2553+
c, err := ioutil.ReadAll(f)
2554+
if err != nil {
2555+
return name, "", fmt.Errorf("read value for %s from file failed: %s", name, err)
2556+
}
2557+
return name, string(c), nil
25582558
}
25592559

25602560
func (config *configOptions) loadRoutingNamespaces() *configOptions {

0 commit comments

Comments
 (0)