From 9667b3dd9a360ec52a331facd32e90f7baa7082d Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 4 Apr 2019 10:25:00 -0700 Subject: [PATCH] .../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 --- cc/deps.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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)