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

Simplify header parsing logic #601

Merged
merged 1 commit into from
Nov 14, 2022
Merged

Simplify header parsing logic #601

merged 1 commit into from
Nov 14, 2022

Conversation

basil
Copy link
Member

@basil basil commented Nov 14, 2022

While reading this code recently I found the logic unnecessarily complex. This PR makes the logic 38 lines shorter without any change in functionality. I tested this change against Jenkins core with mvn clean verify -Dtest=hudson.slaves.ChannelPingerTest,hudson.slaves.JNLPLauncherTest,hudson.slaves.PingThreadTest,hudson.slaves.SlaveComputerTest,jenkins.agents.WebSocketAgentsTest,jenkins.security.AgentToControllerSecurityTest,jenkins.security.CustomClassFilterTest,jenkins.slaves.OldRemotingAgentTest,jenkins.slaves.RemotingVersionInfoTest,jenkins.slaves.UnsupportedRemotingAgentEscapeHatchTest,jenkins.slaves.UnsupportedRemotingAgentTest.

@basil basil added the internal label Nov 14, 2022
@basil basil merged commit 21f7a72 into jenkinsci:master Nov 14, 2022
@basil basil deleted the simplify branch November 14, 2022 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants