Skip to content

Commit

Permalink
updated code style
Browse files Browse the repository at this point in the history
  • Loading branch information
maurafortino committed Sep 20, 2023
1 parent 3a6f9a4 commit 572d25b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions binOp.go
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions checks_test.go
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion deviceAccess_test.go
Expand Up @@ -74,7 +74,7 @@ func testAuthorizeWRP(t *testing.T, testCases []deviceAccessTestCase, strict boo
wrpMessagesCounter: counter,
deviceRegistry: mockDeviceRegistry,
sep: ">",
logger: testLogger,
logger: testLogger,
checks: checks,
}

Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 572d25b

Please sign in to comment.