Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
ov7a committed Nov 29, 2022
1 parent 73de1f8 commit 717f891
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ class ForbiddenAnnotation(config: Config = Config.empty) : Rule(config) {

override fun visitAnnotationEntry(annotation: KtAnnotationEntry) {
super.visitAnnotationEntry(annotation)
if (annotations.isEmpty()) {
return
}

annotation.typeReference?.fqNameOrNull()?.let {
check(annotation, it)
Expand All @@ -80,9 +77,6 @@ class ForbiddenAnnotation(config: Config = Config.empty) : Rule(config) {
override fun visitExpression(expression: KtExpression) {
super.visitExpression(expression)

if (annotations.isEmpty()) {
return
}
expression.expressionTypeOrNull()?.fqNameOrNull()?.let {
check(expression, it)
}
Expand Down

0 comments on commit 717f891

Please sign in to comment.