From f3b09dcc6ab9ff1033eb482245748893f0dcc03c Mon Sep 17 00:00:00 2001 From: Tzu-Wei Sung Date: Tue, 8 Dec 2020 20:52:02 -0800 Subject: [PATCH] Remove else branch --- tensorflow/core/ops/array_ops.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tensorflow/core/ops/array_ops.cc b/tensorflow/core/ops/array_ops.cc index 7b0557c4595..ad673d3235c 100644 --- a/tensorflow/core/ops/array_ops.cc +++ b/tensorflow/core/ops/array_ops.cc @@ -1479,12 +1479,9 @@ Status UniqueIdxShapeFn(InferenceContext* c) { } c->set_output(1, c->Vector(c->Dim(input, axis))); return Status::OK(); - } else { - return errors::InvalidArgument( - "axis does not support input tensors larger than 1 elements."); } - - return Status::OK(); + return errors::InvalidArgument( + "axis does not support input tensors larger than 1 elements."); } } // namespace