From 92785d109fd0482aade6b7d931a3c6d9603bb370 Mon Sep 17 00:00:00 2001 From: Gerasimos Maropoulos Date: Sun, 2 Oct 2016 15:05:17 +0300 Subject: [PATCH] Fix padding on readme --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 71763248..ffa67747 100644 --- a/README.md +++ b/README.md @@ -252,30 +252,30 @@ func save(ctx *iris.Context) { // Get avatar avatar, err := ctx.FormFile("avatar") if err != nil { - ctx.EmitError(iris.StatusInternalServerError) - return + ctx.EmitError(iris.StatusInternalServerError) + return } // Source src, err := avatar.Open() if err != nil { - ctx.EmitError(iris.StatusInternalServerError) - return + ctx.EmitError(iris.StatusInternalServerError) + return } defer src.Close() // Destination dst, err := os.Create(avatar.Filename) if err != nil { - ctx.EmitError(iris.StatusInternalServerError) - return + ctx.EmitError(iris.StatusInternalServerError) + return } defer dst.Close() // Copy if _, err = io.Copy(dst, src); err != nil { - ctx.EmitError(iris.StatusInternalServerError) - return + ctx.EmitError(iris.StatusInternalServerError) + return } ctx.HTML(iris.StatusOK, "Thanks!")