Sitelet https://github.com/InstaPy/InstaPy/pull/4336
Skip to content

Variable defined multiple times - #4336

Merged
timgrossmann merged 3 commits into
InstaPy:devfrom
matbrgz:patch-3
Apr 24, 2019
Merged

timgrossmann merged 3 commits into
InstaPy:devfrom
matbrgz:patch-3

Conversation

@matbrgz

@matbrgz matbrgz commented Apr 18, 2019

Copy link
Copy Markdown

Assignment to a variable occurs multiple times without any intermediate use of that variable

Multiple assignments to a single variable without an intervening usage makes the first assignment redundant. Its value is lost.

Assignment to a variable occurs multiple times without any intermediate use of that variable
@CharlesCCC

Copy link
Copy Markdown
Contributor

I don't think it is redundant, I believe it used for user who need DB location override.

@timgrossmann

Copy link
Copy Markdown
Collaborator

@MatheusRV @CharlesCCC Checking the scope of the variable and taking into consideration that the address variable is reassigned before being used for any checks indicates that it actually is redundant.

Thank you very much for the update of quality for this project!

@timgrossmann
timgrossmann changed the base branch from master to dev April 24, 2019 02:35
@timgrossmann
timgrossmann merged commit b604e95 into InstaPy:dev Apr 24, 2019
@matbrgz
matbrgz deleted the patch-3 branch April 24, 2019 17:08
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.

3 participants