Skip to content

Commit

Permalink
Actually make the fast code path return early
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk authored Oct 26, 2022
1 parent 519abb7 commit 48334c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xarray/core/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ def align(self) -> None:
# fast path for the trivial case
(obj,) = self.objects
self.results = (obj.copy(deep=self.copy),)
return

self.find_matching_indexes()
self.find_matching_unindexed_dims()
Expand Down

0 comments on commit 48334c6

Please sign in to comment.