Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tools/check_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ def checkNamespace(file_path):

# To avoid breaking the Lyft import, we just check for path inclusion here.
def whitelistedForProtobufDeps(file_path):
return len(
[path_segment in file_path
for path_segment in GOOGLE_PROTOBUF_WHITELIST]) > 0
return any(path_segment in file_path for path_segment in GOOGLE_PROTOBUF_WHITELIST)

def checkProtobufExternalDepsBuild(file_path):
if whitelistedForProtobufDeps(file_path):
Expand Down