Skip to content

Commit

Permalink
refactor: remove redundant close statement
Browse files Browse the repository at this point in the history
  • Loading branch information
70sh1 committed Mar 29, 2024
1 parent 7ea630f commit 08b2456
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/decrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ func DecryptFile(source *os.File, pathOut, password string, force bool, progress
return err
}
dec := (*decryptor)(processor)
defer dec.source.Close()

tmpFile, err := os.CreateTemp(filepath.Dir(pathOut), "*.tmp")
if err != nil {
Expand Down

0 comments on commit 08b2456

Please sign in to comment.