Skip to content

Commit

Permalink
gofmt main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewarren committed May 1, 2018
1 parent 930831f commit d160faa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func main() {

checkError("error acquiring input", err)


prettyPrint(r)

}
Expand Down Expand Up @@ -64,7 +63,7 @@ func prettyPrint(data io.Reader) {
// colorized output is written to dst
dst := &bytes.Buffer{}
err := f.Format(dst, []byte(b))
checkError("error colorizing JSON",err)
checkError("error colorizing JSON", err)

// print colorized output to stdout
fmt.Println(dst.String())
Expand Down Expand Up @@ -105,7 +104,7 @@ func openStdinOrFile() (io.Reader, error) {
return os.Stdin, err
}

func checkError(message string,err error) {
func checkError(message string, err error) {
if err != nil {
log.WithError(err).Fatal(message)
}
Expand Down

0 comments on commit d160faa

Please sign in to comment.