Skip to content
Permalink
Browse files

fix: improve code

  • Loading branch information...
mmatur authored and caarlos0 committed Jan 21, 2019
1 parent 203066f commit 267145bbe4b2e7aeda2aff339ffe172f73467546
Showing with 3 additions and 2 deletions.
  1. +3 −2 internal/pipe/s3/s3.go
@@ -72,12 +72,13 @@ func upload(ctx *context.Context, conf config.S3) error {
Region: aws.String(conf.Region),
})

bucket, err := tmpl.New(ctx).Apply(conf.Bucket)
template := tmpl.New(ctx)
bucket, err := template.Apply(conf.Bucket)
if err != nil {
return err
}

folder, err := tmpl.New(ctx).Apply(conf.Folder)
folder, err := template.Apply(conf.Folder)
if err != nil {
return err
}

0 comments on commit 267145b

Please sign in to comment.
You can’t perform that action at this time.