Skip to content

Commit b84898f

Browse files
committed
Fix SpaceBeforeClosingBrace warnings from CodeNarc.
@see http://codenarc.sourceforge.net/codenarc-rules-formatting.html#SpaceBeforeClosingBrace No functional changes.
1 parent f75316b commit b84898f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/groovy/ru/mystamps/web/service/FilesystemImagePersistenceStrategyTest.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class FilesystemImagePersistenceStrategyTest extends Specification {
4545
when:
4646
strategy.save(multipartFile, imageInfoDto)
4747
then:
48-
1 * strategy.writeToFile(_ as MultipartFile, _ as Path) >> {}
48+
1 * strategy.writeToFile(_ as MultipartFile, _ as Path) >> { }
4949
}
5050

5151
@SuppressWarnings(['ClosureAsLastMethodParameter', 'UnnecessaryReturnKeyword'])
@@ -58,7 +58,7 @@ class FilesystemImagePersistenceStrategyTest extends Specification {
5858
1 * strategy.writeToFile(_ as MultipartFile, { Path path ->
5959
assert path.parent.toString() == expectedDirectoryName
6060
return true
61-
}) >> {}
61+
}) >> { }
6262
}
6363

6464
@SuppressWarnings(['ClosureAsLastMethodParameter', 'UnnecessaryReturnKeyword'])
@@ -73,7 +73,7 @@ class FilesystemImagePersistenceStrategyTest extends Specification {
7373
1 * strategy.writeToFile(_ as MultipartFile, { Path path ->
7474
assert path.fileName.toString() == expectedFileName
7575
return true
76-
}) >> {}
76+
}) >> { }
7777
}
7878

7979
def "save() should converts IOException to ImagePersistenceException"() {

0 commit comments

Comments
 (0)