linting
This commit is contained in:
@@ -15,6 +15,7 @@ func CloseFile(logger mlogger.Logger, file *os.File) {
|
||||
}
|
||||
|
||||
func ReadFile(logger mlogger.Logger, filePath string) ([]byte, error) {
|
||||
//nolint:gosec // Read path is provided by trusted caller configuration.
|
||||
file, err := os.Open(filePath)
|
||||
if err != nil {
|
||||
logger.Warn("Failed to open file", zap.String("path", filePath), zap.Error(err))
|
||||
|
||||
Reference in New Issue
Block a user