From 07b60c184354ae4b87bf063c46ab66aff494bd4d Mon Sep 17 00:00:00 2001 From: Gareth Rushgrove Date: Sun, 23 Apr 2023 13:27:11 +0100 Subject: [PATCH] Fix up some linting issues --- internal/commands/default.go | 2 +- internal/commands/packages.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/commands/default.go b/internal/commands/default.go index f10add1..8bd9d8b 100644 --- a/internal/commands/default.go +++ b/internal/commands/default.go @@ -14,7 +14,7 @@ func NewDefaultCommand() *cobra.Command { Long: ``, SilenceUsage: true, Run: func(cmd *cobra.Command, args []string) { - cmd.Help() + _ = cmd.Help() }, } diff --git a/internal/commands/packages.go b/internal/commands/packages.go index 5d26111..ee8da98 100644 --- a/internal/commands/packages.go +++ b/internal/commands/packages.go @@ -10,8 +10,6 @@ import ( "github.com/spf13/cobra" ) -const server = "https://packages.ecosyste.ms/api/v1" - func NewPackageCommand() *cobra.Command { cmd := cobra.Command{ Use: "package ",