Skip to content

Commit b8db982

Browse files
authored
Simplify example in the README (#18)
1 parent 91d30c4 commit b8db982

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ class MyGithubPlugin < CodeTeams::Plugin
3030
end
3131
3232
def member?(user)
33-
members = github.members
34-
return false unless members
35-
36-
members.include?(user)
33+
github.members.include?(user)
3734
end
3835
3936
sig { override.params(teams: T::Array[CodeTeams::Team]).returns(T::Array[String]) }

0 commit comments

Comments
 (0)