Skip to content

Commit 3a599f1

Browse files
authored
Fix linter issues (#31)
1 parent 3ccf11e commit 3a599f1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

server/command.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const (
1616
)
1717

1818
// ExecuteCommand fetches contribution stats for a given repository or organistation and posts them in a message
19-
func (p *Plugin) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError) {
19+
func (p *Plugin) ExecuteCommand(_ *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError) {
2020
commandArgs := strings.Split(strings.TrimSpace(strings.TrimPrefix(args.Command, "/"+trigger)), " ")
2121
command := commandArgs[0]
2222
commandArgs = commandArgs[1:]

server/plugin.go

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ type Plugin struct {
2929
botUserID string
3030
}
3131

32+
var _ = manifest // Fix unused linter error
33+
3234
// OnActivate creates a github client with the access token from the configurations,
3335
// creates a bot account, if it doesn't exist and registers the /community slash command
3436
func (p *Plugin) OnActivate() error {

0 commit comments

Comments
 (0)