Skip to content

Commit

Permalink
fix: Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <[email protected]>
  • Loading branch information
gaocegege committed Sep 11, 2019
1 parent 3756b4f commit 1fd8f4a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/controller.v1/tensorflow/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,7 @@ func isDistributed(tfjob *tfv1.TFJob) bool {
}
}
}
if distributionCount != 1 {
return true
}
return false
return distributionCount != 1
}

func setRestartPolicy(podTemplateSpec *v1.PodTemplateSpec, spec *common.ReplicaSpec) {
Expand Down

0 comments on commit 1fd8f4a

Please sign in to comment.