Skip to content

refactor: Remove dead block of code - #710

Merged
Seldaek merged 1 commit into
jsonrainbow:masterfrom
DannyvdSluijs:pr-641-alternative
May 21, 2024
Merged

refactor: Remove dead block of code#710
Seldaek merged 1 commit into
jsonrainbow:masterfrom
DannyvdSluijs:pr-641-alternative

Conversation

@DannyvdSluijs

Copy link
Copy Markdown
Collaborator

Based on the original PR (#641) from Markus Staab it was found the incorrect order of arguments to be in a dead piece of code. The strpos-call was added in ffc856d on 18/02/2016 whereas in 6474265 on 03/03/2016 the calling code of the validateDateTime with an format argument containing an u was removed making this check void. So removing the code block would be best, hence this PR.

@DannyvdSluijs DannyvdSluijs mentioned this pull request Feb 12, 2024

@dafeder dafeder left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@DannyvdSluijs doing my best to review this as I get familiar with the code. It looks to me like the removed case would be covered by the Rfc3339 class, and that all cases are covered in the FormatTest. So I would think if tests pass this is good. However, I don't see a test result for this PR; does CI run for PRs on this repo?

@DannyvdSluijs

Copy link
Copy Markdown
Collaborator Author

However, I don't see a test result for this PR; does CI run for PRs on this repo?

I’ve seen this on other PRs in this repo as well. I’ll keep an eye out for this issues. For now I’ve amended the commit, creating a new commit hash which has started the pipeline.

@dafeder

dafeder commented May 21, 2024

Copy link
Copy Markdown

Well again a little insecure still about approving being so new to the codebase itself but lgtm?

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