Skip to content

Commit

Permalink
Merge pull request #5 from tenntenn/fix-dl-return
Browse files Browse the repository at this point in the history
Add return to prevent creating empty file
  • Loading branch information
tenntenn authored Aug 11, 2020
2 parents 593d010 + d625db5 commit 33ae0b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/gp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func main() {
fmt.Fprintln(os.Stderr, "Error:", err)
os.Exit(1)
}
return
}

data := buf.Bytes()
Expand Down

0 comments on commit 33ae0b8

Please sign in to comment.