Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev committed Dec 8, 2020
1 parent 945873c commit e5baa77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ffmpeg/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (t *Transcoder) Output(arg string) transcoder.Transcoder {

// InputPipe ...
func (t *Transcoder) InputPipe(w *io.WriteCloser, r *io.ReadCloser) transcoder.Transcoder {
if &t.input == nil {
if t.input == "" {
t.inputPipeWriter = w
t.inputPipeReader = r
}
Expand All @@ -141,7 +141,7 @@ func (t *Transcoder) InputPipe(w *io.WriteCloser, r *io.ReadCloser) transcoder.T

// OutputPipe ...
func (t *Transcoder) OutputPipe(w *io.WriteCloser, r *io.ReadCloser) transcoder.Transcoder {
if &t.output == nil {
if t.output == nil {
t.outputPipeWriter = w
t.outputPipeReader = r
}
Expand Down Expand Up @@ -216,7 +216,7 @@ func (t *Transcoder) GetMetadata() (transcoder.Metadata, error) {

var metadata Metadata

if err = json.Unmarshal([]byte(outb.String()), &metadata); err != nil {
if err = json.Unmarshal(outb.Bytes(), &metadata); err != nil {
return nil, err
}

Expand Down

0 comments on commit e5baa77

Please sign in to comment.