Skip to content

Commit 8ec1a21

Browse files
committed
fix linter issues
1 parent b4bb4bb commit 8ec1a21

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/bind/params.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ var (
3232
func asUUID(v interface{}) (value.Value, bool) {
3333
switch reflect.TypeOf(v) {
3434
case uuidType:
35-
return value.Uuid(v.(uuid.UUID)), true
35+
return value.Uuid(v.(uuid.UUID)), true //nolint:forcetypeassert
3636
case uuidPtrType:
37-
vv := v.(*uuid.UUID)
37+
vv := v.(*uuid.UUID) //nolint:forcetypeassert
3838
if vv == nil {
3939
return value.NullValue(types.UUID), true
4040
}
4141

42-
return value.OptionalValue(value.Uuid(*(v.(*uuid.UUID)))), true
42+
return value.OptionalValue(value.Uuid(*(v.(*uuid.UUID)))), true //nolint:forcetypeassert
4343
}
4444

4545
return nil, false

internal/bind/params_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ func TestAsUUID(t *testing.T) {
832832
t.Run("*uuid.UUID", func(t *testing.T) {
833833
v, ok := asUUID(&uuid.UUID{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16})
834834
require.True(t, ok)
835-
require.Equal(t, value.OptionalValue(expUUIDValue), v) //nolint:lll
835+
require.Equal(t, value.OptionalValue(expUUIDValue), v)
836836
})
837837
})
838838
t.Run("Invalid", func(t *testing.T) {

0 commit comments

Comments
 (0)