Skip to content

Commit

Permalink
Fix warning about mixing value and pointer receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Aug 21, 2022
1 parent e981ee2 commit ebad96b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scanner/metadata/metadata.go
Expand Up @@ -109,13 +109,13 @@ func (t Tags) MbzAlbumComment() string {

// File properties

func (t *Tags) Duration() float32 { return float32(t.getFloat("duration")) }
func (t *Tags) BitRate() int { return t.getInt("bitrate") }
func (t *Tags) Channels() int { return t.getInt("channels") }
func (t *Tags) ModificationTime() time.Time { return t.fileInfo.ModTime() }
func (t *Tags) Size() int64 { return t.fileInfo.Size() }
func (t *Tags) FilePath() string { return t.filePath }
func (t *Tags) Suffix() string { return strings.ToLower(strings.TrimPrefix(path.Ext(t.filePath), ".")) }
func (t Tags) Duration() float32 { return float32(t.getFloat("duration")) }
func (t Tags) BitRate() int { return t.getInt("bitrate") }
func (t Tags) Channels() int { return t.getInt("channels") }
func (t Tags) ModificationTime() time.Time { return t.fileInfo.ModTime() }
func (t Tags) Size() int64 { return t.fileInfo.Size() }
func (t Tags) FilePath() string { return t.filePath }
func (t Tags) Suffix() string { return strings.ToLower(strings.TrimPrefix(path.Ext(t.filePath), ".")) }

func (t Tags) getTags(tagNames ...string) []string {
for _, tag := range tagNames {
Expand Down

0 comments on commit ebad96b

Please sign in to comment.