Skip to content

Commit

Permalink
Simplify the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Nov 13, 2019
1 parent 07cbbf7 commit 15f94cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GeneralRules/RBGlobalVariablesUsage.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RBGlobalVariablesUsage class >> checksMethod [
RBGlobalVariablesUsage >> basicCheck: aMethod [
^ (aMethod literals
select: [ :l | l isLiteral not and: [ l isGlobalVariable ] ])
noneSatisfy: [ :v | v value isClass or: [ v value isTrait ] ]
noneSatisfy: [ :v | v value isClassOrTrait ]
]

{ #category : #running }
Expand Down

0 comments on commit 15f94cd

Please sign in to comment.