Skip to content

Commit

Permalink
fixed a linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
scmacdon committed Jul 2, 2024
1 parent 8103a17 commit ada9318
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,14 @@ class ECRActions {
}
}

fun listLocalImages(): Boolean {
return try {
val images = getDockerClient()?.listImagesCmd()?.exec()
images?.any { image ->
image.repoTags?.any { tag -> tag.startsWith("echo-text") } ?: false
} ?: false
} catch (ex: Exception) {
println("ERROR: ${ex.message}")
false
}
fun listLocalImages(): Boolean = try {
val images = getDockerClient()?.listImagesCmd()?.exec()
images?.any { image ->
image.repoTags?.any { tag -> tag.startsWith("echo-text") } ?: false
} ?: false
} catch (ex: Exception) {
println("ERROR: ${ex.message}")
false
}

// snippet-start:[ecr.kotlin.push.image.main]
Expand Down

0 comments on commit ada9318

Please sign in to comment.