Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Fix: bug risks
Browse files Browse the repository at this point in the history
  • Loading branch information
profclems committed Aug 14, 2020
1 parent d0e4f9e commit cb5e297
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions commands/pipeline.go
Expand Up @@ -246,6 +246,9 @@ func getPipelineFromBranch(ref, repo string) ([]*gitlab.Job, error) {
}
pipeline := pipes[0]
jobs, err := getPipelineJobs(pipeline.ID, repo)
if err != nil {
return nil, err
}
return jobs, nil
}

Expand Down
2 changes: 1 addition & 1 deletion commands/pipeline_ci_trace.go
Expand Up @@ -145,7 +145,7 @@ func runTrace(ctx context.Context, w io.Writer, pid interface{}, sha, name strin
}
fmt.Fprintf(w, "Showing logs for %s job #%d\n", job.Name, job.ID)
})
_, err = io.CopyN(ioutil.Discard, trace, offset)
_, _ = io.CopyN(ioutil.Discard, trace, offset)
lenT, err := io.Copy(w, trace)
if err != nil {
return err
Expand Down
4 changes: 4 additions & 0 deletions commands/pipeline_status.go
Expand Up @@ -112,6 +112,10 @@ var pipelineStatusCmd = &cobra.Command{
er(err)
}
pipes, err = getPipelines(l, repo)
if err != nil {
er(err)
return
}
runningPipeline = pipes[0]
isRunning = true
}
Expand Down

0 comments on commit cb5e297

Please sign in to comment.