Skip to content

Commit

Permalink
fix some typos and linter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Jan 3, 2024
1 parent 375e1c7 commit dba7955
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
3 changes: 1 addition & 2 deletions library/actions/comment.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
//
//nolint:dupl // ignore dup code

package actions

import "github.com/go-vela/types/constants"
Expand Down
3 changes: 1 addition & 2 deletions library/actions/push.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
//
//nolint:dupl // ignore dup code

package actions

import "github.com/go-vela/types/constants"
Expand Down
4 changes: 2 additions & 2 deletions library/actions/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package actions
import "github.com/go-vela/types/constants"

// Schedule is the library representation of the various actions associated
// with the deploy event webhook from the SCM.
// with the schedule event.
type Schedule struct {
Run *bool `json:"created"`
Run *bool `json:"run"`
}

// FromMask returns the Schedule type resulting from the provided integer mask.
Expand Down
12 changes: 0 additions & 12 deletions library/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,15 +520,3 @@ func (s *Secret) String() string {
s.GetUpdatedBy(),
)
}

// checkEvent implements a function that iterates through
// a list to check the event is a member of the list.
func checkEvent(events []string, event string) bool {
for _, e := range events {
if e == event {
return true
}
}

return false
}

0 comments on commit dba7955

Please sign in to comment.