feat: upgrade golangci-lint to 1.45.2
This commit is contained in:
parent
09c0d14444
commit
5cf263a86f
20 changed files with 77 additions and 59 deletions
|
|
@ -14,6 +14,7 @@
|
|||
// You should have received a copy of the GNU Affero General Public Licensee
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package utils
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ func WriteFilesToZip(files map[int64]io.ReadCloser, wr *zip.Writer) (err error)
|
|||
}
|
||||
_, err = io.Copy(w, file)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error writing file %d: %s", fid, err)
|
||||
return fmt.Errorf("error writing file %d: %w", fid, err)
|
||||
}
|
||||
_ = file.Close()
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue