Skip to content

Commit 2333f93

Browse files
PatOnTheBackpoyea
authored andcommitted
Change Declaration of Var 'j' to None (TheAlgorithms#921)
Since `j` is redefined before it is used, it makes more sense to declare it with the value `None` instead of `1`. This fixes a [warning from lgtm](https://lgtm.com/projects/g/TheAlgorithms/Python/snapshot/66c4afbd0f28f9989f35ddbeb5c9263390c5d192/files/other/primelib.py?sort=name&dir=ASC&mode=heatmap)
1 parent 34889fc commit 2333f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

other/primelib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def goldbach(number):
283283

284284
# run variable for while-loops.
285285
i = 0
286-
j = 1
286+
j = None
287287

288288
# exit variable. for break up the loops
289289
loop = True

0 commit comments

Comments
 (0)