Skip to content

Commit

Permalink
Fix latest golangci-lint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Sep 26, 2019
1 parent 7873028 commit c8afaf6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion internal/provider/bitmovin/bitmovin.go
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,6 @@ func (p *bitmovinProvider) Transcode(job *db.Job) (*provider.JobStatus, error) {
var audioStreamID, videoStreamID string

if !isRepeatedAudio {

audioStream := &models.Stream{
CodecConfigurationID: &audioPresetID,
InputStreams: aiss,
Expand Down
2 changes: 0 additions & 2 deletions internal/provider/encodingcom/encodingcom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,6 @@ func TestCreatePreset(t *testing.T) {
if !reflect.DeepEqual(fakePreset.Request.Format[0], expectedFormat) {
pretty.Fdiff(os.Stderr, fakePreset.Request.Format[0], expectedFormat)
t.Errorf("wrong format provided\nWant %#v\nGot %#v", expectedFormat, fakePreset.Request.Format[0])

}
}

Expand Down Expand Up @@ -1103,7 +1102,6 @@ func TestCreatePresetTwoPass(t *testing.T) {
if !reflect.DeepEqual(fakePreset.Request.Format[0], expectedFormat) {
pretty.Fdiff(os.Stderr, fakePreset.Request.Format[0], expectedFormat)
t.Errorf("wrong format provided\nWant %#v\nGot %#v", expectedFormat, fakePreset.Request.Format[0])

}
}

Expand Down
4 changes: 0 additions & 4 deletions internal/provider/hybrik/hybrik.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ func (hp *hybrikProvider) presetsToTranscodeJob(job *db.Job) (string, error) {
}

// create transcode elements for each target
// TODO: This can be optimized further with regards to combining tasks so that they run in the same machine. Requires some discussion
for _, output := range job.Outputs {
presetID, ok := output.Preset.ProviderMapping[Name]
if !ok {
Expand Down Expand Up @@ -303,7 +302,6 @@ func (hp *hybrikProvider) presetsToTranscodeJob(job *db.Job) (string, error) {
},
},
)

}

resp, err := json.Marshal(cj)
Expand Down Expand Up @@ -408,8 +406,6 @@ func (hp *hybrikProvider) CreatePreset(preset db.Preset) (string, error) {
videoProfile := strings.ToLower(preset.Video.Profile)
videoLevel := preset.Video.ProfileLevel

// TODO: Understand video-transcoding-api profile + level settings in relation to vp8
// For now, we will omit and leave to encoder defaults
if preset.Video.Codec == "vp8" {
videoProfile = ""
videoLevel = ""
Expand Down

0 comments on commit c8afaf6

Please sign in to comment.