Skip to content

Commit

Permalink
fmt: code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed May 5, 2020
1 parent 6b20d0a commit 9ac79b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion sdk/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ func (server *server) init() error {
if err != nil && !os.IsNotExist(err) {
return err
}
break

case networkTypeTCP:
// No setup required.
Expand Down
12 changes: 6 additions & 6 deletions sdk/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -887,9 +887,9 @@ func TestServer_ReadCache(t *testing.T) {
// server can get them from the device manager when creating a ReadContext.
deviceManager := &deviceManager{
devices: map[string]*Device{
"12345": &Device{id: "12345"},
"67890": &Device{id: "67890"},
"abcde": &Device{id: "abcde"},
"12345": {id: "12345"},
"67890": {id: "67890"},
"abcde": {id: "abcde"},
},
}

Expand Down Expand Up @@ -927,9 +927,9 @@ func TestServer_ReadCache_error(t *testing.T) {
// server can get them from the device manager when creating a ReadContext.
deviceManager := &deviceManager{
devices: map[string]*Device{
"12345": &Device{id: "12345"},
"67890": &Device{id: "67890"},
"abcde": &Device{id: "abcde"},
"12345": {id: "12345"},
"67890": {id: "67890"},
"abcde": {id: "abcde"},
},
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/state_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func TestStateManager_GetCachedReadings_cacheEnabled(t *testing.T) {
func TestStateManager_GetCachedReadings_cacheDisabled(t *testing.T) {
deviceManager := &deviceManager{
devices: map[string]*Device{
"1": &Device{id: "1"},
"1": {id: "1"},
},
}

Expand Down Expand Up @@ -552,7 +552,7 @@ func TestStateManager_dumpCurrentReadings_noReadings(t *testing.T) {
func TestStateManager_dumpCurrentReadings_hasReadings(t *testing.T) {
deviceManager := &deviceManager{
devices: map[string]*Device{
"1": &Device{id: "1"},
"1": {id: "1"},
},
}

Expand Down

0 comments on commit 9ac79b6

Please sign in to comment.