Skip to content

Commit

Permalink
Merge pull request openshift#1977 from alvaroaleman/fix-bugs
Browse files Browse the repository at this point in the history
Fix an ineffective break and an incomplete nilcheck
  • Loading branch information
openshift-merge-robot committed May 12, 2021
2 parents ce00324 + 66483c9 commit 63e4e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/entrypoint-wrapper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func execCmd(argv []string) error {
for {
select {
case <-ctx.Done():
break
return
case s := <-sig:
fmt.Fprintf(os.Stderr, "received signal %d, forwarding\n", s)
if err := proc.Process.Signal(s); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/rehearse/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func getResolvedConfigForTest(ciopConfig config.DataWithInfo, resolver registry.
// target clusters where the rehearsals will execute).
func inlineCiOpConfig(container *v1.Container, ciopConfigs config.DataByFilename, resolver registry.Resolver, metadata api.Metadata, testname string, loggers Loggers) (apihelper.ImageStreamTagMap, error) {
allImageStreamTags := apihelper.ImageStreamTagMap{}
if container.Command == nil || container.Command[0] != "ci-operator" {
if len(container.Command) < 1 || container.Command[0] != "ci-operator" {
return allImageStreamTags, nil
}

Expand Down

0 comments on commit 63e4e66

Please sign in to comment.