open-horizon / edge-sync-service

Cloud - Edge synchronization service (MMS)
Apache License 2.0
24 stars 26 forks source link

Check error on deferred file.Close #143

Closed MaxMcAdam closed 1 year ago

MaxMcAdam commented 1 year ago

file.Close() can return an error. This error should be checked even when the close is deferred.

bencourliss commented 1 year ago

See https://github.com/securego/gosec/issues/512#issuecomment-675286833 for a potential way to fix this.