Skip to content

Commit

Permalink
comments: add clarity in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillerv committed Nov 21, 2022
1 parent a87e6e0 commit fb6fb3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (l *LocalFile) getFileType(buf []byte) string {
ext := filepath.Ext(l.Path)
trimmedExt := strings.TrimLeft(ext, ".") // remove the delimiter
// added the trim check because some supported filetypes were not recognized by
// the filetype.IsType function despite having proper extension
// the filetype.IsType function despite having proper extension and working with the respective decoder
if filetype.IsType(buf, filetype.GetType("wav")) || trimmedExt == wavFile {
return wavFile
}
Expand Down

0 comments on commit fb6fb3d

Please sign in to comment.