Fix comment on RemapFileAndSHA

This commit is contained in:
Justin Santa Barbara 2018-02-21 17:39:16 -05:00
parent b68f58d746
commit df47310e41
1 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,8 @@ func (a *AssetBuilder) RemapImage(image string) (string, error) {
return image, nil
}
// RemapFile sets a new url location for the file, if a AssetsLocation is defined.
// RemapFileAndSHA returns a remapped url for the file, if AssetsLocation is defined.
// It also returns the SHA hash of the file.
func (a *AssetBuilder) RemapFileAndSHA(fileURL *url.URL) (*url.URL, *hashing.Hash, error) {
if fileURL == nil {
return nil, nil, fmt.Errorf("unable to remap an nil URL")