mirror of
https://github.com/YuzuZensai/TrollSSH.git
synced 2026-09-13 18:49:11 +00:00
♻️ refactor: check and handle previously ignored error returns
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ func writeTSF(output string, data *FramesContainer) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer f.Close()
|
||||
defer func() { _ = f.Close() }()
|
||||
|
||||
w := bufio.NewWriterSize(f, 1<<20)
|
||||
if _, err := w.WriteString(tsfMagic); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user