Skip to content

Commit

Permalink
examples/stroage: use &bytes.Buffer{}
Browse files Browse the repository at this point in the history
bytes.NewBuffer(nil) is not as nice.

Change-Id: I3a49455d864730f1d8729f152e7bfb14d211ef43
Reviewed-on: https://code-review.googlesource.com/4780
Reviewed-by: David Symonds <[email protected]>
  • Loading branch information
okdave committed May 17, 2016
1 parent 5fac0ba commit e037998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/storage/appengine/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Demo GCS Application running from Version: %v\n", appengine.VersionID(ctx))
fmt.Fprintf(w, "Using bucket name: %v\n\n", bucket)

buf := bytes.NewBuffer(nil)
buf := &bytes.Buffer{}
d := &demo{
w: buf,
ctx: ctx,
Expand Down

0 comments on commit e037998

Please sign in to comment.