Skip to content

Commit

Permalink
Make return more concise
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Sep 7, 2023
1 parent e87c2c1 commit f005176
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,4 @@ def collect(
)
if data_point is not None:
data_points.append(data_point)
if data_points:
return data_points
return None
return data_points or None

0 comments on commit f005176

Please sign in to comment.