minor refactor but i think no problem
cicd / ci (push) Successful in 1m28s
Details
cicd / ci (push) Successful in 1m28s
Details
parent
1805a087e0
commit
0b4d78796e
|
|
@ -171,7 +171,10 @@ func FPrintBalances(w io.Writer, linePrefix string, balances, cumulatives ledger
|
|||
}
|
||||
for i, key := range keys {
|
||||
printableKey := key
|
||||
if !fullKey && i > 0 {
|
||||
if fullKey {
|
||||
} else if i == 0 {
|
||||
} else {
|
||||
commonPrefixLen := func() int {
|
||||
j := 0
|
||||
n := len(keys[i])
|
||||
if n2 := len(keys[i-1]); n2 < n {
|
||||
|
|
@ -185,7 +188,9 @@ func FPrintBalances(w io.Writer, linePrefix string, balances, cumulatives ledger
|
|||
for keys[i][j] != ':' && j > 0 {
|
||||
j -= 1
|
||||
}
|
||||
printableKey = strings.Repeat(" ", j) + keys[i][j:]
|
||||
return j
|
||||
}()
|
||||
printableKey = strings.Repeat(" ", commonPrefixLen) + keys[i][commonPrefixLen:]
|
||||
}
|
||||
|
||||
currencies := []ledger.Currency{}
|
||||
|
|
|
|||
Loading…
Reference in New Issue