.../BUILD: fix build file/module bugs (#18)

Change this pattern
    if foo [not] in native.existing_rules():
to
    if [not] native.existing_rule(foo):
for efficiency.

PiperOrigin-RevId: 241954724
This commit is contained in:
Googler 2019-04-04 10:25:00 -07:00 committed by Copybara-Service
parent 951df6a496
commit 9667b3dd9a
1 changed files with 1 additions and 1 deletions

View File

@ -13,5 +13,5 @@ def rules_cc_deps():
)
def _maybe(repo_rule, name, **kwargs):
if name not in native.existing_rules():
if not native.existing_rule(name):
repo_rule(name = name, **kwargs)