Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove dead block of code #710

Merged
merged 1 commit into from
May 21, 2024

Conversation

DannyvdSluijs
Copy link
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
Copy link

@dafeder dafeder left a comment

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
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
Copy link

dafeder commented May 21, 2024

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

@Seldaek Seldaek merged commit 9e3c631 into jsonrainbow:master May 21, 2024
15 checks passed
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