From b01ac16f670861b1fb5ffe8747674d0c298d1f81 Mon Sep 17 00:00:00 2001 From: Subodh Ranadive Date: Fri, 5 Mar 2021 15:35:46 +0530 Subject: Linting fixed --- src/main/java/org/traccar/sms/SnsSmsClient.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/main/java') 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(); -- cgit v1.2.3