Skip to content

Commit

Permalink
samples: fix lint (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Sep 22, 2020
1 parent 163fc05 commit 04b289d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions samples/snippets/src/test/java/pubsub/AdminIT.java
Expand Up @@ -82,14 +82,16 @@ public void tearDown() throws Exception {
subscriptionAdminClient.deleteSubscription(pullSubscriptionName);
subscriptionAdminClient.deleteSubscription(pushSubscriptionName);
subscriptionAdminClient.deleteSubscription(orderedSubscriptionName);
} catch (NotFoundException e) {
} catch (NotFoundException ignored) {
// ignore this as resources may not have been created
}
}

// Delete the topic if it has not been cleaned.
try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
topicAdminClient.deleteTopic(topicName.toString());
} catch (NotFoundException e) {
} catch (NotFoundException ignored) {
// ignore this as resources may not have been created
}
System.setOut(null);
}
Expand Down

0 comments on commit 04b289d

Please sign in to comment.