Reformat stdlib tests and samples

#KT-5558
This commit is contained in:
Ilya Gorbunov
2018-04-23 16:18:24 +03:00
parent add09e0f2e
commit ecf0d7ec0d
39 changed files with 389 additions and 284 deletions
+2 -4
View File
@@ -521,8 +521,7 @@ class FilesTest {
}
var conflicts = 0
src.copyRecursively(dst) {
_: File, e: IOException ->
src.copyRecursively(dst) { _: File, e: IOException ->
if (e is FileAlreadyExistsException) {
conflicts++
OnErrorAction.SKIP
@@ -536,8 +535,7 @@ class FilesTest {
try {
dst.deleteRecursively()
var caught = false
assertTrue(src.copyRecursively(dst) {
_: File, e: IOException ->
assertTrue(src.copyRecursively(dst) { _: File, e: IOException ->
if (e is AccessDeniedException) {
caught = true
OnErrorAction.SKIP