mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
fix: lint
This commit is contained in:
@@ -58,7 +58,9 @@ func (t *Turn) Write(p []byte) (n int, err error) {
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
defer writer.Close()
|
||||
defer func(writer io.WriteCloser) {
|
||||
_ = writer.Close()
|
||||
}(writer)
|
||||
|
||||
return writer.Write(p)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user