2
0

fix: lint errors in plugin loader
All checks were successful
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 2m31s
Build and Release / Unit Tests (push) Successful in 5m10s
Build and Release / Lint (push) Successful in 5m21s
Build and Release / Build Binaries (amd64, darwin, linux-latest) (push) Successful in 3m20s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 3m28s
Build and Release / Build Binaries (arm64, darwin, linux-latest) (push) Successful in 3m55s
Build and Release / Build Binaries (arm64, linux, linux-latest) (push) Successful in 4m2s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 8h6m19s

- Use errors.New instead of fmt.Errorf for simple strings
- Run gofmt on new files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-17 10:24:55 -05:00
parent b91b9c5711
commit 1c15c3c45a

View File

@@ -4,6 +4,7 @@
package plugins
import (
"errors"
"fmt"
"os"
"path/filepath"
@@ -99,7 +100,7 @@ func loadPlugin(path string) error {
}
if plug == nil || *plug == nil {
return fmt.Errorf("Plugin symbol is nil")
return errors.New("plugin symbol is nil")
}
Register(*plug)