From 31753a17d83d0db41e645f292f2a1cf9d7374694 Mon Sep 17 00:00:00 2001 From: Subodh Ranadive Date: Fri, 19 Mar 2021 12:30:16 +0530 Subject: Linting fixed --- src/main/java/org/traccar/sms/SnsSmsClient.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java index 8a3710ec8..cc7d09778 100644 --- a/src/main/java/org/traccar/sms/SnsSmsClient.java +++ b/src/main/java/org/traccar/sms/SnsSmsClient.java @@ -41,7 +41,9 @@ public class SnsSmsClient implements SmsManager { && Context.getConfig().hasKey(Keys.SMS_AWS_ACCESS) && Context.getConfig().hasKey(Keys.SMS_AWS_SECRET)) { snsClient = awsSNSClient(); - } else { throw new RuntimeException("SNS Not Configured Properly. Please provide valid config."); } + } else { + throw new RuntimeException("SNS Not Configured Properly. Please provide valid config."); + } } public AmazonSNSAsync awsSNSClient() { @@ -61,7 +63,9 @@ public class SnsSmsClient implements SmsManager { try { snsClient.publishAsync(new PublishRequest().withMessage(message) .withPhoneNumber(destAddress).withMessageAttributes(smsAttributes)); - } catch (Exception exception) { LOGGER.warn("SMS send failed", exception); } + } catch (Exception exception) { + LOGGER.warn("SMS send failed", exception); + } } @Override -- cgit v1.2.3