Skip to content

Commit 925f5d4

Browse files
xteraoCopilot
andauthored
Fixed logic when SQL file is null
Co-authored-by: Copilot <[email protected]>
1 parent a933ae1 commit 925f5d4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/kotlin/org/domaframework/doma/intellij/inspection/dao/DomaSqlQuickFixTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ class DomaSqlQuickFixTest : DomaSqlTest() {
172172
val extension = if (isScript) "script" else "sql"
173173
findSqlFile(packageName, "$testDaoName/generateSQLFile.$extension")?.let { generatedSql ->
174174
afterCheck(generatedSql)
175-
} ?: {
176-
fail("Not Found SQL File: $packageName/$testDaoName/generateSQLFile.$extension")
177-
}
175+
} ?: fail("Not Found SQL File: $packageName/$testDaoName/generateSQLFile.$extension")
178176
}
179177

180178
private fun getQuickFixTestDaoName(daoName: String): String = "$packagename/$daoName"

0 commit comments

Comments
 (0)