Skip to content

Commit d33b002

Browse files
authored
CLN: remove unreachable branch (pandas-dev#32405)
1 parent ce7670c commit d33b002

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

pandas/core/indexes/base.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
is_categorical,
3333
is_categorical_dtype,
3434
is_datetime64_any_dtype,
35-
is_datetime64tz_dtype,
3635
is_dtype_equal,
3736
is_extension_array_dtype,
3837
is_float,
@@ -2525,14 +2524,8 @@ def _union(self, other, sort):
25252524
return other._get_reconciled_name_object(self)
25262525

25272526
# TODO(EA): setops-refactor, clean all this up
2528-
if is_datetime64tz_dtype(self):
2529-
lvals = self._ndarray_values
2530-
else:
2531-
lvals = self._values
2532-
if is_datetime64tz_dtype(other):
2533-
rvals = other._ndarray_values
2534-
else:
2535-
rvals = other._values
2527+
lvals = self._values
2528+
rvals = other._values
25362529

25372530
if sort is None and self.is_monotonic and other.is_monotonic:
25382531
try:

0 commit comments

Comments
 (0)