Skip to content

Commit

Permalink
Internal cleanup
Browse files Browse the repository at this point in the history
RELNOTES=N/A
PiperOrigin-RevId: 411604756
  • Loading branch information
groakley authored and Dagger Team committed Nov 22, 2021
1 parent 5486fce commit 0c52e85
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -95,7 +95,7 @@ public Object generatedComponent() {
if (component.get() == null) {
Preconditions.checkState(
hasHiltTestRule(),
"The component was not created. Check that you have added the HiltAndroidRule.");
"The component was not created. Check that you have added the HiltAndroidRule.");
if (!registeredModules.keySet().containsAll(requiredModules())) {
Set<Class<?>> difference = new HashSet<>(requiredModules());
difference.removeAll(registeredModules.keySet());
Expand Down Expand Up @@ -318,9 +318,7 @@ private TestComponentData testComponentData() {
}

private Class<?> testClass() {
Preconditions.checkState(
hasHiltTestRule(),
"Test must have an HiltAndroidRule.");
Preconditions.checkState(hasHiltTestRule(), "Test must have a HiltAndroidRule.");
return hasHiltTestRule.get().getTestClass();
}

Expand Down

0 comments on commit 0c52e85

Please sign in to comment.