From 326e1353c0b7e0ac5e518d04e7fb5337036cf43d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 28 Dec 2015 17:34:51 +0100 Subject: minor documenation improvement diff --git a/src/helsinki.at/rhimport/importer.go b/src/helsinki.at/rhimport/importer.go index 406c58e..abc99e8 100644 --- a/src/helsinki.at/rhimport/importer.go +++ b/src/helsinki.at/rhimport/importer.go @@ -455,7 +455,7 @@ func ImportFile(ctx *ImportContext) (res *ImportResult, err error) { rmCartOnErr := false rmCutOnErr := false res = &ImportResult{ResponseCode: http.StatusOK} - if ctx.ShowId != 0 { + if ctx.ShowId != 0 { // Import to a show var show_carts []uint if show_carts, err = ctx.getShowInfo(); err != nil { return @@ -476,7 +476,7 @@ func ImportFile(ctx *ImportContext) (res *ImportResult, err error) { } } rmCartOnErr = true - } else if ctx.GroupName != "" { + } else if ctx.GroupName != "" { // Import to music pool if err = ctx.getMusicInfo(); err != nil { return } @@ -484,7 +484,7 @@ func ImportFile(ctx *ImportContext) (res *ImportResult, err error) { return } rmCartOnErr = true - } else if ctx.Cart != 0 && ctx.Cut == 0 { + } else if ctx.Cart != 0 && ctx.Cut == 0 { // Import to Cart if ctx.ClearCart { if err = remove_add_cart_cut(ctx, res); err != nil || res.ResponseCode != http.StatusOK { return @@ -505,7 +505,7 @@ func ImportFile(ctx *ImportContext) (res *ImportResult, err error) { } } - if ctx.Cart != 0 && ctx.Cut != 0 { + if ctx.Cart != 0 && ctx.Cut != 0 { // Import to specific Cut within Cart if err = import_audio(ctx, res); err != nil || res.ResponseCode != http.StatusOK { if err != nil { rhl.Printf("Fileimport has failed (Cart/Cut %d/%d): %s", ctx.Cart, ctx.Cut, err) -- cgit v0.10.2