Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davidporter-id-au committed Mar 24, 2023
1 parent 2a645ac commit 30400e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion common/isolationgroup/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"github.com/uber/cadence/common/types"
)


//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination isolation_group_mock.go -self_package github.com/uber/cadence/common/isolationgroup

// State is a heavily cached in-memory library for returning the state of what zones are healthy or
Expand Down
4 changes: 2 additions & 2 deletions common/partition/default-partitioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ func pickIsolationGroup(wfPartition defaultWorkflowPartitionConfig, available ty
}

// it's drained, fall back to picking a deterministic but random group
availableList := []string{}
for k, _ := range available {
var availableList []string
for k := range available {
availableList = append(availableList, k)
}
// sort the slice to ensure it's deterministic
Expand Down

0 comments on commit 30400e3

Please sign in to comment.