Skip to content

Commit

Permalink
CLN: fixup duplicated getitem call from GH-44624 (#44781)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Dec 6, 2021
1 parent 097322f commit c1c202c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pandas/core/arrays/datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ def __getitem__(
result = cast(
"Union[DatetimeLikeArrayT, DTScalarOrNaT]", super().__getitem__(key)
)
result = super().__getitem__(key)
if lib.is_scalar(result):
return result
else:
Expand Down

0 comments on commit c1c202c

Please sign in to comment.