Skip to content

Commit f0398d5

Browse files
authored
lint fixes
1 parent 33078e4 commit f0398d5

File tree

1 file changed

+6
-6
lines changed
  • Trinket_Ultrasonic_Rangefinder

1 file changed

+6
-6
lines changed

Trinket_Ultrasonic_Rangefinder/code.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ def find_mode(x):
8080
should mode not be found
8181
"""
8282
n = len(x)
83-
84-
if n == 0: # If somehow there is a null array
85-
return 0;
86-
87-
if n == 1: # In trivial case of a one element array
88-
return x[0]; # just return the element as the mode.
83+
84+
if n == 0: # If somehow there is a null array
85+
return 0
86+
87+
if n == 1: # In trivial case of a one element array
88+
return x[0] # just return the element as the mode.
8989

9090
max_count = 0
9191
mode = 0

0 commit comments

Comments
 (0)