aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-19 12:30:16 +0530
committerSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-24 15:30:32 +0530
commit31753a17d83d0db41e645f292f2a1cf9d7374694 (patch)
tree427255223a480d6144a59f13bd21da18e4bd5b29
parentfb37051a51c9ceb643ac4e5374fafaaad2196d95 (diff)
downloadtrackermap-server-31753a17d83d0db41e645f292f2a1cf9d7374694.tar.gz
trackermap-server-31753a17d83d0db41e645f292f2a1cf9d7374694.tar.bz2
trackermap-server-31753a17d83d0db41e645f292f2a1cf9d7374694.zip
Linting fixed
-rw-r--r--src/main/java/org/traccar/sms/SnsSmsClient.java8
1 files 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