Skip to content

Commit

Permalink
refactor: rename unused arg as '_'
Browse files Browse the repository at this point in the history
  • Loading branch information
quite committed Sep 30, 2024
1 parent e357d71 commit 723233e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions calendar.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const (
CalendarUserTypeUnknown CalendarUserType = "UNKNOWN"
)

func (cut CalendarUserType) KeyValue(s ...interface{}) (string, []string) {
func (cut CalendarUserType) KeyValue(_ ...interface{}) (string, []string) {
return string(ParameterCutype), []string{string(cut)}
}

Expand All @@ -203,7 +203,7 @@ const (
ParticipationStatusInProcess ParticipationStatus = "IN-PROCESS"
)

func (ps ParticipationStatus) KeyValue(s ...interface{}) (string, []string) {
func (ps ParticipationStatus) KeyValue(_ ...interface{}) (string, []string) {
return string(ParameterParticipationStatus), []string{string(ps)}
}

Expand All @@ -220,7 +220,7 @@ const (
ObjectStatusFinal ObjectStatus = "FINAL"
)

func (ps ObjectStatus) KeyValue(s ...interface{}) (string, []string) {
func (ps ObjectStatus) KeyValue(_ ...interface{}) (string, []string) {
return string(PropertyStatus), []string{string(ps)}
}

Expand All @@ -241,7 +241,7 @@ const (
ParticipationRoleNonParticipant ParticipationRole = "NON-PARTICIPANT"
)

func (pr ParticipationRole) KeyValue(s ...interface{}) (string, []string) {
func (pr ParticipationRole) KeyValue(_ ...interface{}) (string, []string) {
return string(ParameterRole), []string{string(pr)}
}

Expand Down
2 changes: 1 addition & 1 deletion property.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type KeyValues struct {
Value []string
}

func (kv *KeyValues) KeyValue(s ...interface{}) (string, []string) {
func (kv *KeyValues) KeyValue(_ ...interface{}) (string, []string) {
return kv.Key, kv.Value
}

Expand Down

0 comments on commit 723233e

Please sign in to comment.