Skip to content

Commit

Permalink
Fix annoying trainling whitespace in queue
Browse files Browse the repository at this point in the history
  • Loading branch information
ejv2 committed Aug 8, 2024
1 parent 5ec854c commit 78a3fe6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ func (q *Queue) Save() {
prefix = "+"
}

fmt.Fprintf(file, "%s%s \"%s\" %s\n", prefix, elem.URL, elem.Path, StateStrings[elem.State])
ss := StateStrings[elem.State]
if ss != "" {
ss = " " + ss
}

fmt.Fprintf(file, "%s%s \"%s\"%s\n", prefix, elem.URL, elem.Path, ss)
}
}

Expand Down

0 comments on commit 78a3fe6

Please sign in to comment.