Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d8e9e0

Browse files
committed
fix some lint issues
1 parent 3097aa9 commit 7d8e9e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/testing/pytest/fixtures/shopping_cart.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,4 @@ def __add__(self, other):
5050
"""add two items together if they are the same type"""
5151
if self.name == other.name:
5252
return Item(self.name, self.quantity + other.quantity)
53-
else:
54-
raise ValueError("names don't match")
53+
raise ValueError("names don't match")

0 commit comments

Comments
 (0)