Skip to content

Commit 71742a0

Browse files
committed
FilesystemImagePersistenceStrategy.init(): ignore PMD warning.
Correction for cc9466d commit. No functional changes.
1 parent 08294f6 commit 71742a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ru/mystamps/web/service/FilesystemImagePersistenceStrategy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public FilesystemImagePersistenceStrategy(String storageDir) {
4848
public void init() {
4949
LOG.info("Images will be saved into {} directory", storageDir);
5050

51-
if (!storageDir.exists()) {
51+
if (!storageDir.exists()) { // NOPMD: ConfusingTernary (it's ok for me)
5252
LOG.warn("Directory '{}' doesn't exist! Image uploading won't work.", storageDir);
5353

5454
} else if (!storageDir.canWrite()) {

0 commit comments

Comments
 (0)