Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewparmet committed Nov 15, 2024
1 parent 716b95f commit 54532d1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/kotlin/build/buf/gradle/LintTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ abstract class LintTask : AbstractBufExecTask() {
}
}

private fun noWorkspaceAndV1Syntax() =
!hasWorkspace.get() && v1SyntaxOnly.get()
private fun noWorkspaceAndV1Syntax() = !hasWorkspace.get() && v1SyntaxOnly.get()

private fun noWorkspaceAndNoProtobufGradlePlugin() =
!hasWorkspace.get() && !hasProtobufGradlePlugin.get()
private fun noWorkspaceAndNoProtobufGradlePlugin() = !hasWorkspace.get() && !hasProtobufGradlePlugin.get()

private fun File.readAndStripComments() =
lines(toPath()).use { lines ->
Expand Down

0 comments on commit 54532d1

Please sign in to comment.