ignore errs from head

This commit is contained in:
Nathan LaFreniere 2015-12-31 12:07:25 -08:00
parent 5707a06507
commit c770036ece
1 changed files with 1 additions and 4 deletions

5
aws.go
View File

@ -94,13 +94,10 @@ func (a *AWS) Upload(local, remote string) error {
contentType = mime.TypeByExtension(fileExt)
}
head, err := a.client.HeadObject(&s3.HeadObjectInput{
head, _ := a.client.HeadObject(&s3.HeadObjectInput{
Bucket: aws.String(a.vargs.Bucket),
Key: aws.String(remote),
})
if err != nil {
return err
}
if head != nil {
hash := md5.New()