Skip to content

Commit 76495b2

Browse files
committed
reformat
1 parent 231793d commit 76495b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/org/tabooproject/development/inspection/DatabaseWorkspaceInspection.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class DatabaseWorkspaceInspection: AbstractKotlinInspection() {
1414
override fun buildVisitor(holder: ProblemsHolder, isOnTheFly: Boolean): KtVisitorVoid {
1515
return object : KtVisitorVoid() {
1616
override fun visitCallExpression(expression: KtCallExpression) {
17-
super.visitCallExpression(expression)
1817
val calleeExpression = expression.calleeExpression?.text
1918
if (calleeExpression == "workspace") {
19+
2020
val qualifiedExpression = expression.parent as? KtDotQualifiedExpression
2121
val receiverExpression = qualifiedExpression?.receiverExpression
2222
val context = receiverExpression?.analyze(BodyResolveMode.PARTIAL)
@@ -37,7 +37,7 @@ class DatabaseWorkspaceInspection: AbstractKotlinInspection() {
3737
if (!hasRunCall) {
3838
holder.registerProblem(
3939
expression,
40-
"Calling 'workspace' without any method",
40+
"Not use any functions after 'workspace'",
4141
ProblemHighlightType.WARNING,
4242
AddRunQuickFix()
4343
)

0 commit comments

Comments
 (0)