aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/lib
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-05-14 16:26:33 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-14 16:29:00 -0700
commitf94d60a177f91adf84d64d8d5c323d31d62a501d (patch)
treed48ec5cde51c09d94b54c25e7d3e07c9bec906ca /tensorflow/python/lib
parent5334631d7650d2212926fae661c2d0f8b9e7b358 (diff)
ClangTidy - Readability cleanup:/code-findings-fixes.
* unused using-declarations * redundant string conversions * C-style casts * redundant get() call on smart pointer * the 'empty' method should be used to check for emptiness instead of 'size' PiperOrigin-RevId: 196585984
Diffstat (limited to 'tensorflow/python/lib')
-rw-r--r--tensorflow/python/lib/core/ndarray_tensor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/lib/core/ndarray_tensor.cc b/tensorflow/python/lib/core/ndarray_tensor.cc
index a07e305ffb..9df38d464c 100644
--- a/tensorflow/python/lib/core/ndarray_tensor.cc
+++ b/tensorflow/python/lib/core/ndarray_tensor.cc
@@ -145,7 +145,7 @@ Status PyBytesArrayMap(PyArrayObject* array, F f) {
while (PyArray_ITER_NOTDONE(iter.get())) {
auto item = tensorflow::make_safe(PyArray_GETITEM(
array, static_cast<char*>(PyArray_ITER_DATA(iter.get()))));
- if (!item.get()) {
+ if (!item) {
return errors::Internal("Unable to get element from the feed - no item.");
}
char* ptr;