mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-17 15:36:00 +00:00
Add godot linter to harmonitze toplevel comments (#3650)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
package utils
|
||||
|
||||
// Paginate iterates over a func call until it does not return new items and return it as list
|
||||
// Paginate iterates over a func call until it does not return new items and return it as list.
|
||||
func Paginate[T any](get func(page int) ([]T, error)) ([]T, error) {
|
||||
items := make([]T, 0, 10)
|
||||
page := 1
|
||||
|
@@ -32,7 +32,7 @@ func MergeSlices[T any](slices ...[]T) []T {
|
||||
return result
|
||||
}
|
||||
|
||||
// EqualSliceValues compare two slices if they have equal values independent of how they are sorted
|
||||
// EqualSliceValues compare two slices if they have equal values independent of how they are sorted.
|
||||
func EqualSliceValues[E comparable](s1, s2 []E) bool {
|
||||
if len(s1) != len(s2) {
|
||||
return false
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
package utils
|
||||
|
||||
// DeduplicateStrings deduplicate string list, empty items are dropped
|
||||
// DeduplicateStrings deduplicate string list, empty items are dropped.
|
||||
func DeduplicateStrings(src []string) []string {
|
||||
m := make(map[string]struct{}, len(src))
|
||||
dst := make([]string, 0, len(src))
|
||||
|
Reference in New Issue
Block a user