1
0

feat: upgrade golangci-lint to 1.45.2

This commit is contained in:
kolaente
2022-03-27 16:55:37 +02:00
parent 09c0d14444
commit 5cf263a86f
20 changed files with 77 additions and 59 deletions

View File

@ -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

View File

@ -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()
}