Skip to content

Commit 16b8b21

Browse files
committed
chore(lint): pin golang-ci lint version
1 parent 78ecf16 commit 16b8b21

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
uses: golangci/[email protected]
1717
with:
1818
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
19-
version: latest
19+
version: v2.1.6
2020
args: --timeout 5m

internal/datasource/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// FindExact finds the first element in 'slice' matching the condition defined by 'finder'.
1111
// It returns the first matching element and an error if either no match is found or multiple matches are found.
12-
func FindExact[T any](slice []T, finder func(T) bool, searchName string) (T, error) { //nolint
12+
func FindExact[T any](slice []T, finder func(T) bool, searchName string) (T, error) {
1313
var found T
1414

1515
var foundFlag bool

internal/types/map.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func ExpandMapStringString(data any) map[string]string {
7272

7373
// GetMapValue returns the value for a key from a map.
7474
// returns zero value if key does not exist in map.
75-
func GetMapValue[T any]( //nolint:ireturn
75+
func GetMapValue[T any](
7676
m map[string]any,
7777
key string,
7878
) T {

0 commit comments

Comments
 (0)