From 572d25be5b1eb267d43d7d0575f4d10b27db8656 Mon Sep 17 00:00:00 2001 From: maura fortino Date: Wed, 20 Sep 2023 09:49:38 -0400 Subject: [PATCH] updated code style --- binOp.go | 6 +++--- checks_test.go | 8 ++++---- deviceAccess_test.go | 2 +- go.mod | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/binOp.go b/binOp.go index 827efcfc..5be46854 100644 --- a/binOp.go +++ b/binOp.go @@ -142,9 +142,9 @@ func (g greaterThan) name() string { return GreaterThanOp } -//iterable checks that the given interface is of a -//supported iterable reflect.Kind and if so, -//returns a slice of its elements +// iterable checks that the given interface is of a +// supported iterable reflect.Kind and if so, +// returns a slice of its elements func iterable(e interface{}) ([]interface{}, bool) { switch reflect.TypeOf(e).Kind() { case reflect.Slice, reflect.Array: diff --git a/checks_test.go b/checks_test.go index 73de37f4..9cd1f2c5 100644 --- a/checks_test.go +++ b/checks_test.go @@ -68,10 +68,10 @@ func TestParseDeviceAccessCheck(t *testing.T) { config: deviceAccessCheck{ Name: " trimWhiteSpaces ", DeviceCredentialPath: " dcp", - WRPCredentialPath: "wcp ", - InputValue: []string{"e0", "e1"}, - Op: IntersectsOp, - Inversed: true, + WRPCredentialPath: "wcp ", + InputValue: []string{"e0", "e1"}, + Op: IntersectsOp, + Inversed: true, }, expectedCheckName: "trimWhiteSpaces", expectedDeviceCredPath: "dcp", diff --git a/deviceAccess_test.go b/deviceAccess_test.go index 56f5f6be..d8f7d252 100644 --- a/deviceAccess_test.go +++ b/deviceAccess_test.go @@ -74,7 +74,7 @@ func testAuthorizeWRP(t *testing.T, testCases []deviceAccessTestCase, strict boo wrpMessagesCounter: counter, deviceRegistry: mockDeviceRegistry, sep: ">", - logger: testLogger, + logger: testLogger, checks: checks, } diff --git a/go.mod b/go.mod index 04c00e5d..85a055dc 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/xmidt-org/talaria -go 1.19 +go 1.21 require ( github.com/fatih/structs v1.1.0