linting
This commit is contained in:
@@ -28,6 +28,7 @@ func (s *service) Load(path string) (*Config, error) {
|
||||
return nil, merrors.InvalidArgument("config path is required", "path")
|
||||
}
|
||||
|
||||
//nolint:gosec // Configuration file path is provided by service startup configuration.
|
||||
data, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
s.logger.Error("Failed to read config file", zap.String("path", path), zap.Error(err))
|
||||
|
||||
Reference in New Issue
Block a user