Skip to content

Simplify code and check valid pages#1

Merged
gfischershaw merged 1 commit intogfischershaw:Issue-#6755from
mlocati-forks:Issue-#6755
Jun 12, 2018
Merged

Simplify code and check valid pages#1
gfischershaw merged 1 commit intogfischershaw:Issue-#6755from
mlocati-forks:Issue-#6755

Conversation

@mlocati
Copy link
Copy Markdown

@mlocati mlocati commented Jun 12, 2018

No description provided.

@gfischershaw
Copy link
Copy Markdown
Owner

Thanks. Yes, the duplicate code bugged me, but I was not sure if someone would complain if I changed too much. And obviously I do not know enough yet with regards to various error returns. One minor typo should be fixed in the for() loop statement on the resulting line 130.

@mlocati
Copy link
Copy Markdown
Author

mlocati commented Jun 12, 2018

One minor typo should be fixed in the for() loop statement on the resulting line 130.

Which typo?

@gfischershaw
Copy link
Copy Markdown
Owner

Sorry. Just move the conditionals into the middle.

@mlocati
Copy link
Copy Markdown
Author

mlocati commented Jun 12, 2018

Whoops, you are right

@mlocati
Copy link
Copy Markdown
Author

mlocati commented Jun 12, 2018

PR updated, thanks

@mlocati
Copy link
Copy Markdown
Author

mlocati commented Jun 12, 2018

I was not sure if someone would complain if I changed too much.

If code becomes simpler, nobody will complain 😉

@gfischershaw gfischershaw merged commit 9ca07af into gfischershaw:Issue-#6755 Jun 12, 2018
@mlocati mlocati deleted the Issue-#6755 branch June 12, 2018 16:05
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