Skip to content

Commit

Permalink
Fix gometalinter violations
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Souza committed Apr 4, 2017
1 parent 5776807 commit 9cbe954
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion provider/elastictranscoder/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,10 @@ func elasticTranscoderFactory(cfg *config.Config) (provider.TranscodingProvider,
if region == "" {
region = defaultAWSRegion
}
awsSession := session.New(aws.NewConfig().WithCredentials(creds).WithRegion(region))
awsSession, err := session.NewSession(aws.NewConfig().WithCredentials(creds).WithRegion(region))
if err != nil {
return nil, err
}
return &awsProvider{
c: elastictranscoder.New(awsSession),
config: cfg.ElasticTranscoder,
Expand Down
3 changes: 3 additions & 0 deletions provider/zencoder/zencoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func (z *zencoderProvider) buildOutputs(job *db.Job) ([]*zencoder.OutputSettings
}
if hlsOutputs > 0 {
optimizedOutputs, err := z.optimizeOutputsForHLS(zencoderOutputs)
if err != nil {
return nil, err
}
outputsWithHLSPlaylist := make([]*zencoder.OutputSettings, len(optimizedOutputs)+1)
copy(outputsWithHLSPlaylist, optimizedOutputs)
hlsPlaylist, err := z.buildHLSPlaylist(optimizedOutputs, hlsOutputs, job)
Expand Down

0 comments on commit 9cbe954

Please sign in to comment.