diff --git a/cmd/bd/completions.go b/cmd/bd/completions.go index 6f860a7c..4200cac3 100644 --- a/cmd/bd/completions.go +++ b/cmd/bd/completions.go @@ -47,7 +47,7 @@ func issueIDCompletion(cmd *cobra.Command, args []string, toComplete string) ([] // If we can't open database, return empty completion return nil, cobra.ShellCompDirectiveNoFileComp } - defer currentStore.Close() + defer func() { _ = currentStore.Close() }() } // Use SearchIssues with IDPrefix filter to efficiently query matching issues