From f2a09d0564fe9c7b9d0e15c4dd62a61df24c8fc9 Mon Sep 17 00:00:00 2001 From: Ben Schumacher Date: Thu, 4 Apr 2024 15:33:34 +0200 Subject: [PATCH] Fix linter issues --- server/command.go | 2 +- server/plugin.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/command.go b/server/command.go index 5804028..2f4eba4 100644 --- a/server/command.go +++ b/server/command.go @@ -16,7 +16,7 @@ const ( ) // ExecuteCommand fetches contribution stats for a given repository or organistation and posts them in a message -func (p *Plugin) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError) { +func (p *Plugin) ExecuteCommand(_ *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError) { commandArgs := strings.Split(strings.TrimSpace(strings.TrimPrefix(args.Command, "/"+trigger)), " ") command := commandArgs[0] commandArgs = commandArgs[1:] diff --git a/server/plugin.go b/server/plugin.go index 96e13e9..23a691d 100644 --- a/server/plugin.go +++ b/server/plugin.go @@ -29,6 +29,8 @@ type Plugin struct { botUserID string } +var _ = manifest // Fix unused linter error + // OnActivate creates a github client with the access token from the configurations, // creates a bot account, if it doesn't exist and registers the /community slash command func (p *Plugin) OnActivate() error {