Skip to content

Change Declaration of Var 'j' to None#921

Merged
poyea merged 1 commit into
TheAlgorithms:masterfrom
PatOnTheBack:patch-2
Jun 30, 2019
Merged

Change Declaration of Var 'j' to None#921
poyea merged 1 commit into
TheAlgorithms:masterfrom
PatOnTheBack:patch-2

Conversation

@PatOnTheBack

Copy link
Copy Markdown
Contributor

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

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)

@poyea poyea left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your pull request!🤩

@poyea poyea merged commit 2333f93 into TheAlgorithms:master Jun 30, 2019
@PatOnTheBack PatOnTheBack deleted the patch-2 branch July 1, 2019 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants