mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/pss: gofmt applied
This commit is contained in:
parent
1d7aa22424
commit
4de05a3a43
2 changed files with 29 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue