Replace Sprintf with way more performant simple concatenation.
This commit is contained in:
parent
b077fa053c
commit
0d113d30a1
@ -26,7 +26,7 @@ type IcecastStatusDTO struct {
|
||||
}
|
||||
|
||||
func (is *IcecastStatusDTO) Song() string {
|
||||
return fmt.Sprintf("%s - %s", is.Icestats.Source.Artist, is.Icestats.Source.Title)
|
||||
return is.Icestats.Source.Artist + " - " + is.Icestats.Source.Title
|
||||
}
|
||||
|
||||
type IcecastStatus struct {
|
||||
|
Loading…
Reference in New Issue
Block a user