Skip to content

Commit 23ff781

Browse files
committed
trim account names
1 parent 51ab478 commit 23ff781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshare.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func ParseFairShareMetrics() map[string]*FairShareMetrics {
5050
for _, line := range lines {
5151
if ! strings.HasPrefix(line," ") {
5252
if strings.Contains(line,"|") {
53-
account := strings.Split(line,"|")[0]
53+
account := strings.Trim(strings.Split(line,"|")[0]," ")
5454
_,key := accounts[account]
5555
if !key {
5656
accounts[account] = &FairShareMetrics{0}

0 commit comments

Comments
 (0)