Skip to content

Commit 0b66442

Browse files

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slack-lint-checks/src/main/java/slack/lint/retrofit/RetrofitUsageDetector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class RetrofitUsageDetector : Detector(), SourceCodeScanner {
4444
returnType == PsiTypes.voidType() ||
4545
returnType.canonicalText == "kotlin.Unit"
4646
if (isVoidOrUnitReturnType) {
47-
val allowsUnitResult = node.hasAnnotation("slack.lint.annotations.AllowUnitResponse")
47+
val allowsUnitResult = node.hasAnnotation("slack.lint.annotations.AllowUnitResult")
4848
val isSuspend = context.evaluator.isSuspend(node)
4949
if (!(isSuspend && allowsUnitResult)) {
5050
node.report(

0 commit comments

Comments
 (0)