fix: lint errors and update Nix vendorHash

- Add nolint:unparam for readOnly param in sqlite_open.go
- Handle cmd.Help() error in wisp.go
- Handle rows.Close() error in migration 028
- Handle targetStore.Close() error in create.go
- Update Nix vendorHash for current dependencies

Cherry-picked from PR #769
This commit is contained in:
matt wilkie
2025-12-27 17:29:36 -08:00
committed by Steve Yegge
parent 99f5e50a32
commit d3fe6b0f32
5 changed files with 9 additions and 4 deletions

View File

@@ -496,7 +496,11 @@ func createInRig(cmd *cobra.Command, rigName, title, description, issueType stri
if err != nil {
FatalError("failed to open rig %q database: %v", rigName, err)
}
defer targetStore.Close()
defer func() {
if err := targetStore.Close(); err != nil {
fmt.Fprintf(os.Stderr, "warning: failed to close rig database: %v\n", err)
}
}()
var externalRefPtr *string
if externalRef != "" {

View File

@@ -7,6 +7,7 @@ import (
"time"
)
//nolint:unparam // readOnly is used to add mode=ro to connection string
func sqliteConnString(path string, readOnly bool) string {
path = strings.TrimSpace(path)
if path == "" {

View File

@@ -83,7 +83,7 @@ const OldThreshold = 24 * time.Hour
func runWisp(cmd *cobra.Command, args []string) {
if len(args) == 0 {
// No proto-id provided, show help
cmd.Help()
_ = cmd.Help()
return
}
// Delegate to the create logic