Skip to content

Commit 0c06252

Browse files
committed
Optimize and increase coverage
1 parent 471bf6a commit 0c06252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/org/mybatis/dynamic/sql/util/kotlin/KotlinSubQueryBuilders.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ sealed class KotlinBaseSubQueryBuilder {
4343
}
4444

4545
internal fun buildSelectModel(): SelectModel =
46-
selectBuilder?.build()?: throw KInvalidSQLException(Messages.getString("ERROR.28")) //$NON-NLS-1$
46+
(selectBuilder?: throw KInvalidSQLException(Messages.getString("ERROR.28"))).build() //$NON-NLS-1$
4747
}
4848

4949
class KotlinSubQueryBuilder : KotlinBaseSubQueryBuilder(), Buildable<SelectModel> {

0 commit comments

Comments
 (0)