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
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user