aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-05 15:35:46 +0530
committerSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-24 15:30:31 +0530
commitb01ac16f670861b1fb5ffe8747674d0c298d1f81 (patch)
tree3420d9d21ceec2db971b1ef6aa460794441178a2 /src
parentb98f3333d83795b8034257469e4f34fe46050372 (diff)
downloadtraccar-server-b01ac16f670861b1fb5ffe8747674d0c298d1f81.tar.gz
traccar-server-b01ac16f670861b1fb5ffe8747674d0c298d1f81.tar.bz2
traccar-server-b01ac16f670861b1fb5ffe8747674d0c298d1f81.zip
Linting fixed
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/sms/SnsSmsClient.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java
index f8b05b1ce..d79079f7a 100644
--- a/src/main/java/org/traccar/sms/SnsSmsClient.java
+++ b/src/main/java/org/traccar/sms/SnsSmsClient.java
@@ -21,7 +21,6 @@ import com.amazonaws.services.sns.AmazonSNS;
import com.amazonaws.services.sns.AmazonSNSClientBuilder;
import com.amazonaws.services.sns.model.MessageAttributeValue;
import com.amazonaws.services.sns.model.PublishRequest;
-import com.amazonaws.services.sns.model.PublishResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.traccar.Context;
@@ -38,10 +37,10 @@ public class SnsSmsClient implements SmsManager {
private final AmazonSNS snsClient;
public SnsSmsClient() {
- if (!Context.getConfig().getString(Keys.AWS_SNS_ENABLED).equals("true") ||
- Context.getConfig().getString(Keys.AWS_ACCESS_KEY) == null ||
- Context.getConfig().getString(Keys.AWS_SECRET_KEY) == null ||
- Context.getConfig().getString(Keys.AWS_REGION) == null) {
+ if (!Context.getConfig().getString(Keys.AWS_SNS_ENABLED).equals("true")
+ || Context.getConfig().getString(Keys.AWS_ACCESS_KEY) == null
+ || Context.getConfig().getString(Keys.AWS_SECRET_KEY) == null
+ || Context.getConfig().getString(Keys.AWS_REGION) == null) {
throw new RuntimeException("SNS Not Configured Properly. Please provide valid config.");
}
snsClient = awsSNSClient();