Skip to content

Commit a587859

Browse files
author
Chris Cooper
committed
fixes incorrect variable when writing to file
1 parent dc4c162 commit a587859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func main() {
6969
s += "\n]"
7070

7171
if outFile != "" {
72-
err = ioutil.WriteFile(outFile, []byte(data), 0644)
72+
err = ioutil.WriteFile(outFile, []byte(s), 0644)
7373
if err != nil {
7474
fmt.Fprintln(os.Stderr, err)
7575
}

0 commit comments

Comments
 (0)