Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@richardsimko
Copy link
Contributor

Motivation for changes:

Ignoring lines in IRC currently does not work. A continue only skips the innermost loop ;)

Detailed changes:

  • Changed from a continue to a boolean and moved the skip to after the iteration over all ignored patterns

Addressed issues:

N/A

Implemented feature requests:

N/A

Config usage if relevant (new plugin or updated schema):

None

Log and/or tests output (preferably both):

There doesn't seem to be any tests for the IRC plugin. I'm by no means a Python developer so I'm probably not the best person to create them. If I've missed them (Or if there's some other good place for me to add a test case for this) then feel free to point it out!

To Do:

None

Copy link
Contributor

@cvium cvium Jul 3, 2017

Choose a reason for hiding this comment

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

Forgot to capitalize True and you should probably break as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, just discovered this on my local instance! As mentioned I'm not a Python dev. Fix incoming

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point about the break, I'll add that!

Copy link
Contributor

Choose a reason for hiding this comment

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

Semi-colon

@cvium cvium merged commit ce311ed into Flexget:develop Jul 3, 2017
@liiight
Copy link
Member

liiight commented Jul 3, 2017

Why not just use for-else? It's cleaner that way imo

@cvium
Copy link
Contributor

cvium commented Jul 3, 2017

How? You only reach the else-branch if the for-loop doesn't hit a break and putting the rest of the code in the else-branch hurts readability with unnecessary indentation.

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