Skip to content

Commit 723e3e8

Browse files
committed
cleanup
1 parent e26c1f7 commit 723e3e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/track/track.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const (
2626

2727
func StringToTrack(line []string, offset float64) (lastfm.ScrobbleParams, error) {
2828
var (
29+
albumArtist string
2930
duration int
31+
mbid string
3032
position int
3133
timestamp time.Time
3234
durationRaw string = line[DURATION_INDEX]
@@ -58,12 +60,10 @@ func StringToTrack(line []string, offset float64) (lastfm.ScrobbleParams, error)
5860
timestamp, err = convertTimeStamp(timestampRaw, offset)
5961
}
6062

61-
mbid := ""
6263
if len(line) > 7 {
6364
mbid = line[MBID_INDEX]
6465
}
6566

66-
albumArtist := ""
6767
if len(line) > 8 {
6868
albumArtist = line[ALBUM_ARTIST_INDEX]
6969
}

0 commit comments

Comments
 (0)