mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
removed unnecessary if statement
This commit is contained in:
parent
d94cc6f1d3
commit
3f606bb87d
1 changed files with 1 additions and 4 deletions
|
@ -461,10 +461,7 @@ func (c *Connection) catFile() error {
|
||||||
for id := range files {
|
for id := range files {
|
||||||
files[id] = path.Join(c.Path, c.File.Name+".enc."+strconv.Itoa(id))
|
files[id] = path.Join(c.Path, c.File.Name+".enc."+strconv.Itoa(id))
|
||||||
}
|
}
|
||||||
toRemove := true
|
toRemove := !c.Debug
|
||||||
if c.Debug {
|
|
||||||
toRemove = false
|
|
||||||
}
|
|
||||||
return CatFiles(files, path.Join(c.Path, c.File.Name+".enc"), toRemove)
|
return CatFiles(files, path.Join(c.Path, c.File.Name+".enc"), toRemove)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue