"fix" gosec
Some checks reported errors
continuous-integration/drone/pr Build was killed

This commit is contained in:
kolaente 2020-06-19 22:41:43 +02:00
parent 0d4500ce15
commit b6fd17ab10
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -93,6 +93,7 @@ func Dump(filename string) {
} }
func writeFileToZip(filename string, writer *zip.Writer) error { func writeFileToZip(filename string, writer *zip.Writer) error {
// #nosec
fileToZip, err := os.Open(filename) fileToZip, err := os.Open(filename)
if err != nil { if err != nil {
return err return err