mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 16:27:02 +00:00
Change Declaration of Var 'j' to None (#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](66c4afbd0f/files/other/primelib.py
)
This commit is contained in:
parent
34889fc6d8
commit
2333f93323
|
@ -283,7 +283,7 @@ def goldbach(number):
|
|||
|
||||
# run variable for while-loops.
|
||||
i = 0
|
||||
j = 1
|
||||
j = None
|
||||
|
||||
# exit variable. for break up the loops
|
||||
loop = True
|
||||
|
|
Loading…
Reference in New Issue
Block a user