Skip to content

Commit 3058c97

Browse files
committed
small commits
1 parent 1da5967 commit 3058c97

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

jrcc-access-spring-boot-autoconfigure/src/main/java/ca/bc/gov/open/jrccaccess/autoconfigure/plugins/rabbitmq/RabbitMqDocumentInput.java

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public void receiveMessage(DocumentReadyMessage documentReadyMessage) throws Doc
6868
this.redisStorageService.deleteString(storageProperties.getKey());
6969

7070
logger.info("document successfully deleted from redis storage");
71-
7271
logger.info("message successfully acknowledged");
7372
MDC.clear();
7473
}

jrcc-access-spring-boot-autoconfigure/src/main/java/ca/bc/gov/open/jrccaccess/autoconfigure/plugins/sftp/AutoConfiguration.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import ca.bc.gov.open.jrccaccess.autoconfigure.config.exceptions.KnownHostFileNotDefinedException;
55
import ca.bc.gov.open.jrccaccess.autoconfigure.config.exceptions.KnownHostFileNotFoundException;
66
import com.jcraft.jsch.ChannelSftp;
7+
import org.apache.commons.lang3.StringUtils;
78
import org.slf4j.Logger;
89
import org.slf4j.LoggerFactory;
910
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
@@ -70,7 +71,7 @@ public SessionFactory<ChannelSftp.LsEntry> sftpSessionFactory() throws InvalidCo
7071
factory.setAllowUnknownKeys(isAllowUnknownKeys);
7172
if (!isAllowUnknownKeys) {
7273
String knownHostFileStr = properties.getKnownHostFile();
73-
if (knownHostFileStr == null || knownHostFileStr.equals(""))
74+
if (StringUtils.isBlank(knownHostFileStr))
7475
throw new KnownHostFileNotDefinedException("Must define known_hosts file when allow-unknown-keys is false. ");
7576

7677
File knownHostFile = new File(knownHostFileStr);

jrcc-access-spring-boot-sample-app/src/main/resources/application.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ logging:
1010
file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} %X{transaction.filename} - %msg%n"
1111
bcgov:
1212
access:
13-
#####input settings for sftp
1413
input:
1514
sender: bcgov
1615
document-type: test-doc

0 commit comments

Comments
 (0)