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:
@@ -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 != "" {
|
||||
|
||||
@@ -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 == "" {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user