* Codebase cleanup
This commit is contained in:
2025-12-09 01:06:38 +00:00
committed by GitHub
parent 7dec532e18
commit d9888f1a56
16 changed files with 39 additions and 25 deletions
+1
View File
@@ -296,6 +296,7 @@ func LoadConfig(path string) (*Config, error) {
return nil, fmt.Errorf("config file too large: %d bytes (max %d)", fileInfo.Size(), maxConfigSize)
}
// #nosec G304 -- path is validated in main.go (no system dirs, absolute path)
data, err := os.ReadFile(path)
if err != nil {
return nil, fmt.Errorf("failed to read config file: %w", err)