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

Fixes compile warning introduced in #25987 #26244

Closed
wants to merge 1 commit into from

Conversation

jroper
Copy link
Contributor

@jroper jroper commented Jan 15, 2019

Fixes #26239

@akka-ci akka-ci added validating PR is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins and removed validating PR is currently being validated by Jenkins labels Jan 15, 2019
@akka-ci
Copy link

akka-ci commented Jan 15, 2019

Test PASSed.

@jroper
Copy link
Contributor Author

jroper commented Jan 15, 2019

@helena Heres the fixed compile warning.

@@ -127,6 +127,9 @@ private[io] final class AsyncDnsResolver(
if (resolved.records.isEmpty) resolveFirst(remaining, requestType, resolver)
else Future.successful(resolved)
}
case Nil ⇒
// This can't happen
sys.error("resolveFirst shouldn't be called with empty searchNames")
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer throw IllegalStateException since may go noticed

@helena helena self-requested a review January 17, 2019 13:29
@helena
Copy link
Member

helena commented Jan 17, 2019

Thanks @jroper ! Looks like just a minor change in response to Nil requested.

Copy link
Member

@helena helena left a comment

Choose a reason for hiding this comment

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

Minor change for Nil

@helena
Copy link
Member

helena commented Feb 9, 2019

Closing to not bother @jroper and the replacement fixes 2 new. This is the only manual fix before adding automated build checks. Thanks @jroper !

@helena helena closed this Feb 9, 2019
@jroper
Copy link
Contributor Author

jroper commented Feb 11, 2019

Sorry @helena, this slipped through the cracks. Thanks for following up.

@jroper jroper deleted the fix-compile-warning branch February 11, 2019 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tested PR that was successfully built and tested by Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants