Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli committed Oct 28, 2020
1 parent aa4dd5c commit 851ad41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func readConfigFile(file string) *map[string]interface{} {
log.Fatal(err)
}

// Parse json
var config map[string]interface{}
err = json.Unmarshal(configFile, &config)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func main() {
config := readConfigFile(*configFile)

// create & write corefile
data := renderTemplateFile(config, *coreFile)
data := renderTemplateFile(config, *templateFile)
err := ioutil.WriteFile(*outFile, data, 0644)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 851ad41

Please sign in to comment.