mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
fix(spotify): trim whitespace before processing
This commit is contained in:
parent
bdc34aeeb7
commit
a7c60c36a5
|
@ -22,6 +22,7 @@ func (s *Spotify) Enabled() bool {
|
|||
}
|
||||
|
||||
for _, record := range records {
|
||||
record = strings.TrimSpace(record)
|
||||
fields := strings.Split(record, ",")
|
||||
if len(fields) == 0 {
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue