commit | 9667b3dd9a360ec52a331facd32e90f7baa7082d | [log] [tgz] |
---|---|---|
author | Googler <noreply@google.com> | Thu Apr 04 10:25:00 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Apr 04 10:25:18 2019 -0700 |
tree | bfdb1b2854dc519255cd58aa30ab774aea5a1e06 | |
parent | 951df6a4964692eed38f267fcd3e3c6b569c8b92 [diff] |
.../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
diff --git a/cc/deps.bzl b/cc/deps.bzl index 7134dd6..f4a6210 100644 --- a/cc/deps.bzl +++ b/cc/deps.bzl
@@ -13,5 +13,5 @@ ) def _maybe(repo_rule, name, **kwargs): - if name not in native.existing_rules(): + if not native.existing_rule(name): repo_rule(name = name, **kwargs)