Skip to content

Commit

Permalink
Fix return values
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Sim <[email protected]>
  • Loading branch information
Ivan Sim committed Mar 8, 2019
1 parent 6d9171b commit 777f2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/inject/inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,12 @@ func (conf *ResourceConfig) injectPodSpec(patch *Patch, identity k8s.TLSIdentity

inboundPortInt, err := strconv.ParseInt(inboundPort, 10, 32)
if err != nil {
return nil
return err
}

metricsPortInt, err := strconv.ParseInt(metricsPort, 10, 32)
if err != nil {
return nil
return err
}

sidecar := v1.Container{
Expand Down

0 comments on commit 777f2ce

Please sign in to comment.