Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Remove unneeded code#108

Merged
ashnazg merged 1 commit intopear:masterfromGrahamCampbell:patch-1
Apr 10, 2020
Merged

Remove unneeded code#108

ashnazg merged 1 commit intopear:masterfromGrahamCampbell:patch-1
Apr 10, 2020

Conversation

GrahamCampbell
Copy link
Contributor

As pointed out by@arjendekorte,#106 should never have been merged, since#102 already provided a better fix.

@GrahamCampbell
Copy link
ContributorAuthor

GrahamCampbell commentedFeb 29, 2020
edited
Loading

The reason the 2nd PR was created is because no release containing the original fix was ever tagger, and the 2nd PR author didn't look to see if there was an unreleased fix already in the code.

Copy link
Member

@ashnazgashnazg left a comment

Choose a reason for hiding this comment

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

Does it hurt anything by keeping this as a last ditch safety check that$cacheid is indeed an array after thegetCacheId() call?

@arjendekorte
Copy link
Contributor

Probably not, but it does change the program flow: it returns earlier to the caller with false, skipping a couple of lines that were executed before these patches became necessary. This may sound a bit academic, but regression testing is a lot easier if you don't have to consider this. A patch should not change the program flow if not absolutely necessary.

ashnazg and faizanakram99 reacted with thumbs up emoji

@ashnazgashnazg merged commitbf6fec5 intopear:masterApr 10, 2020
@GrahamCampbellGrahamCampbell deleted the patch-1 branchApril 10, 2020 18:39
@ashnazg
Copy link
Member

Included in v1.10.11 release.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ashnazgashnazgashnazg approved these changes

@morrisonlevimorrisonlevimorrisonlevi approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@GrahamCampbell@arjendekorte@ashnazg@morrisonlevi@tschelhas

[8]ページ先頭

©2009-2025 Movatter.jp