Replace CIs by Github Actions (#294)

This commit is contained in:
Thomas Pelletier
2019-09-09 19:44:45 -07:00
committed by GitHub
parent 4d5afd743f
commit b40204d36a
11 changed files with 231 additions and 295 deletions
+4 -3
View File
@@ -37,6 +37,7 @@ func processMain(files []string, defaultInput io.Reader, output io.Writer, error
file, err := os.Open(files[0])
if err != nil {
printError(err, errorOutput)
return -1
}
inputReader = file
defer file.Close()
@@ -60,9 +61,9 @@ func reader(r io.Reader) (string, error) {
if err != nil {
return "", err
}
error := json.Unmarshal(jsonBytes, &jsonMap)
if error != nil {
return "", error
err = json.Unmarshal(jsonBytes, &jsonMap)
if err != nil {
return "", err
}
tree, err := toml.TreeFromMap(jsonMap)