swarm/pss: gofmt applied

This commit is contained in:
Vlad 2019-03-06 17:03:58 +04:00
parent 1d7aa22424
commit 4de05a3a43
2 changed files with 29 additions and 33 deletions

View file

@ -169,7 +169,7 @@ func isAllDeployed(expected []uint64, actual []uint64) bool {
}
func removeListElement(arr []uint64, i int) []uint64 {
last := len(arr)-1
last := len(arr) - 1
arr[i] = arr[last]
arr = arr[:last]
return arr
@ -178,7 +178,7 @@ func removeListElement(arr []uint64, i int) []uint64 {
func removeDuplicatesAndSingletons(arr []uint64) []uint64 {
for i := 0; i < len(arr); {
found := false
for j := i+1; j < len(arr); j++ {
for j := i + 1; j < len(arr); j++ {
if arr[i] == arr[j] {
arr = removeListElement(arr, j) // remove duplicate
found = true

View file

@ -91,10 +91,6 @@ func resetTestVariables() {
msgC = make(chan handlerNotification)
}
func init() {
log.Root().SetHandler(log.LvlFilterHandler(log.LvlTrace, log.StreamHandler(os.Stderr, log.TerminalFormat(true))))
}
func isDone() bool {
mu.Lock()
defer mu.Unlock()