Skip to content

🎧 Your Personal Streaming Service

Fixing Build/lint error: "non-constant format string in call to fmt.Errorf (govet)" (#3198)

Rob Emery723f01d98cf6
diff --git a/core/playback/queue.go b/core/playback/queue.go
index a452b499d..0c230a61f 100644
--- a/core/playback/queue.go
+++ b/core/playback/queue.go
@@ -104,7 +104,7 @@ func (pd *Queue) Shuffle() {
var err error
pd.Index, err = pd.getMediaFileIndexByID(backupID)
if err != nil {
- log.Error("Could not find ID while shuffling: " + backupID)
+ log.Error("Could not find ID while shuffling: %s", backupID)
}
}