removed redundand statement
This commit is contained in:
parent
15df8b69f5
commit
560d37abd4
@ -98,16 +98,11 @@ func (rc *RenderingConfig) LoadConfigFile(file string) error {
|
|||||||
|
|
||||||
fmt.Println("loading config file: " + file)
|
fmt.Println("loading config file: " + file)
|
||||||
|
|
||||||
|
|
||||||
content, err := os.ReadFile(file)
|
content, err := os.ReadFile(file)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = toml.Unmarshal(content, rc)
|
return toml.Unmarshal(content, rc)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user