Skip to content

Commit

Permalink
refactor: remove useless to_layout
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 24, 2023
1 parent aa20214 commit 75c70dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/awkward/_connect/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def _array_ufunc_string_likes(
):
left = ak.without_parameters(left, highlevel=False)
elif isinstance(left, (str, bytes)):
left = ak.without_parameters(ak.to_layout([left]), highlevel=False)
left = ak.without_parameters([left], highlevel=False)
else:
return

Expand All @@ -301,7 +301,7 @@ def _array_ufunc_string_likes(
):
right = ak.without_parameters(right, highlevel=False)
elif isinstance(right, (str, bytes)):
right = ak.without_parameters(ak.to_layout([right]), highlevel=False)
right = ak.without_parameters([right], highlevel=False)
else:
return

Expand Down

0 comments on commit 75c70dc

Please sign in to comment.