Skip to content

Commit

Permalink
code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Adamczyk committed Oct 19, 2020
1 parent ba1056d commit 3da60a3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions flank-bash/scripts/ios.ops.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import java.nio.file.Path
import java.nio.file.Paths
import java.nio.file.StandardCopyOption


val debugIphoneOs = "Debug-iphoneos"
val earlGreyExampleSwift = "EarlGreyExampleSwift.app"
val plugins = "PlugIns"
Expand Down Expand Up @@ -49,7 +48,6 @@ suspend fun buildEarlGreyExample() = buildDirectoryPath.runBuilds().resolve("Pro
filterFilesToCopy().copyIosProductFiles()
}.copyTestFiles()


val buildDirectoryPath = Paths.get(iOSTestProjectsPath, earlGreyExample, buildDirectory)

suspend fun Path.runBuilds() = toFile().let { projectPath ->
Expand Down
1 change: 0 additions & 1 deletion flank-bash/scripts/ios/buildExample.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ val buildProductPath = Paths.get(dataPath.toString(), "Build", "Products")
downloadXcPrettyIfNeeded()

shell {

val xcodeCommandSwiftTests = createIosBuildCommand(dataPath.toString(), "./EarlGreyExample.xcworkspace", "EarlGreyExampleSwiftTests")
val xcPrettyCommand = "xcpretty".process()

Expand Down
2 changes: 0 additions & 2 deletions flank-bash/scripts/updateFirebaseApi/updateApiJson.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ shell {
"sort-json $testingV1Path"()
"sort-json $testingV1Beta3Path"()
}


4 changes: 2 additions & 2 deletions flank-bash/scripts/util/archive.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fun File.extract(
} else {
ArchiverFactory.createArchiver(archiveFormat)
}
kotlin.runCatching {
runCatching {
archiver.extract(this, destination)
}.onFailure {
println("There was an error when unpacking $name - $it")
Expand All @@ -34,7 +34,7 @@ fun File.extract(
} else {
ArchiverFactory.createArchiver(archiveFormat)
}
kotlin.runCatching {
runCatching {
archiver.extract(this, destination)
}.onFailure {
println("There was an error when unpacking $name - $it")
Expand Down
2 changes: 1 addition & 1 deletion flank-bash/scripts/util/downloadSoftware.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fun downloadCocoaPodsIfNeeded() {
}

suspend fun Shell.installPods(path: Path) {
kotlin.runCatching { "pod install --project-directory=$path --verbose"() }
runCatching { "pod install --project-directory=$path --verbose"() }
}

fun checkIfPipInstalled() {
Expand Down

0 comments on commit 3da60a3

Please sign in to comment.