Skip to content

Commit

Permalink
trim account names
Browse files Browse the repository at this point in the history
  • Loading branch information
vpenso committed Feb 4, 2021
1 parent 51ab478 commit 23ff781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func ParseFairShareMetrics() map[string]*FairShareMetrics {
for _, line := range lines {
if ! strings.HasPrefix(line," ") {
if strings.Contains(line,"|") {
account := strings.Split(line,"|")[0]
account := strings.Trim(strings.Split(line,"|")[0]," ")
_,key := accounts[account]
if !key {
accounts[account] = &FairShareMetrics{0}
Expand Down

0 comments on commit 23ff781

Please sign in to comment.