Skip to content

Commit

Permalink
[MM-100] Fix failing CI (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayusht2810 authored Jan 23, 2024
1 parent 7fde170 commit f4c3ec4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion server/mocks/mock_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/mocks/mock_store.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/plugin/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

// ServeHTTP demonstrates a plugin that handles HTTP requests.
func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) {
func (p *Plugin) ServeHTTP(_ *plugin.Context, w http.ResponseWriter, r *http.Request) {
p.API.LogDebug("New request:", "Host", r.Host, "RequestURI", r.RequestURI, "Method", r.Method)

p.initializeAPI().ServeHTTP(w, r)
Expand Down
2 changes: 1 addition & 1 deletion server/plugin/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
type panicHandler struct {
}

func (ph panicHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
func (ph panicHandler) ServeHTTP(_ http.ResponseWriter, _ *http.Request) {
panic("bad handler")
}

Expand Down
4 changes: 2 additions & 2 deletions server/plugin/auth_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func (a *mockAesgcm) NonceSize() int { return 1 }

func (a *mockAesgcm) Overhead() int { return 1 }

func (a *mockAesgcm) Seal(dst, nonce, plaintext, additionalData []byte) []byte { return []byte("mock") }
func (a *mockAesgcm) Seal(_, _, _, _ []byte) []byte { return []byte("mock") }

func (a *mockAesgcm) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error) {
func (a *mockAesgcm) Open(_, _, _, _ []byte) ([]byte, error) {
return []byte("mock"), nil
}

Expand Down
2 changes: 1 addition & 1 deletion server/plugin/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type FileStruct struct {
Expiry time.Time
}

func (p *Plugin) MessageHasBeenPosted(c *plugin.Context, post *model.Post) {
func (p *Plugin) MessageHasBeenPosted(_ *plugin.Context, post *model.Post) {
// If the message is posted by bot simply return
if post.UserId == p.botUserID {
return
Expand Down

0 comments on commit f4c3ec4

Please sign in to comment.