From 3f606bb87d11f9de94c86b2307bce19e7b704681 Mon Sep 17 00:00:00 2001 From: h3yEllex Date: Tue, 24 Oct 2017 12:13:04 +0300 Subject: [PATCH] removed unnecessary if statement --- connect.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/connect.go b/connect.go index 7b64d89b..1762f7fc 100644 --- a/connect.go +++ b/connect.go @@ -461,10 +461,7 @@ func (c *Connection) catFile() error { for id := range files { files[id] = path.Join(c.Path, c.File.Name+".enc."+strconv.Itoa(id)) } - toRemove := true - if c.Debug { - toRemove = false - } + toRemove := !c.Debug return CatFiles(files, path.Join(c.Path, c.File.Name+".enc"), toRemove) }