Skip to content

Commit 8fbeca4

Browse files
refactor: unused parameter should be replaced by underscore
Unused parameters in functions or methods should be replaced with `_` (underscore) or removed.
1 parent 22c1933 commit 8fbeca4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

admin/ops.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (o *OpsServer) AdminData() http.Handler {
130130
}
131131

132132
func (*OpsServer) AdminUI() http.Handler {
133-
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
133+
return http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
134134
err := TMPL.Execute(w, nil)
135135
if err != nil {
136136
http.Error(w, err.Error(), http.StatusInternalServerError)

clustering/broadcast-delegate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func newBroadcastDelegate(engine *query.Engine, broadcasts *memberlist.TransmitL
5353
}
5454
}
5555

56-
func (*BroadcastDelegate) NodeMeta(limit int) []byte {
56+
func (*BroadcastDelegate) NodeMeta(_ int) []byte {
5757
return []byte{}
5858
}
5959

0 commit comments

Comments
 (0)