Skip to content

Commit

Permalink
[preprocessor/folder] fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed May 31, 2024
1 parent 857d2bf commit 10d0c6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion preprocessor/folder/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ func getFileMetadata(filePath string) (map[string]any, error) {
return nil, err
}
mediaType := http.DetectContentType(buffer[:n])
file.Seek(0, 0)
_, err = file.Seek(0, 0)
if err != nil {
return nil, err
}

sha := sha256.New()
md := md5.New()
Expand Down

0 comments on commit 10d0c6b

Please sign in to comment.