Skip to content

Commit

Permalink
Fix checkstyle violations
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcreaser committed Aug 16, 2023
1 parent 3be3e1d commit 8fb9613
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import androidx.annotation.NonNull;

import com.amplifyframework.AmplifyException;
import com.amplifyframework.api.ApiException;
import com.amplifyframework.api.ApiException.ApiAuthException;
import com.amplifyframework.api.aws.auth.AuthRuleRequestDecorator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ private boolean isExceptionType(DataStoreException exception, AppSyncErrorType e
emitter::onNext,
dataStoreException -> {
if (ErrorInspector.contains(dataStoreException, ApiException.ApiAuthException.class) ||
isExceptionType(dataStoreException, AppSyncErrorType.UNAUTHORIZED))
{
isExceptionType(dataStoreException, AppSyncErrorType.UNAUTHORIZED)) {
// Ignore Unauthorized errors, so that DataStore can still be used even if the user is only
// authorized to read a subset of the models.
latch.countDown();
Expand Down

0 comments on commit 8fb9613

Please sign in to comment.