mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-21 23:06:42 +00:00
gosec-2.3.0 complains about the following: [/go/src/github.com/ceph/ceph-csi/internal/util/cephcmds.go:146] - G307 (CWE-): Deferring unsafe method "*os.File" on type "Close" (Confidence: HIGH, Severity: MEDIUM) > defer tmpFile.Close() By logging the error from Close(), the warning is gone. Signed-off-by: Niels de Vos <ndevos@redhat.com>