Skip to content

Commit

Permalink
Format bzl files with new buildifier
Browse files Browse the repository at this point in the history
Summary: Build file formatting

Reviewed By: ttsugriy

Differential Revision: D9778749

fbshipit-source-id: 4ee3743fabdbb9202b1fe1334fd255e9734352e2
  • Loading branch information
nataliejameson authored and facebook-github-bot committed Sep 12, 2018
1 parent e224a29 commit 2e66f8d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tools/build_defs/oss/yoga_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,18 @@ LIBRARY_COMPILER_FLAGS = BASE_COMPILER_FLAGS + [
]

def _paths_join(path, *others):
"""Joins one or more path components."""
result = path

for p in others:
if p.startswith("/"): # absolute
result = p
elif not result or result.endswith("/"):
result += p
else:
result += "/" + p

return result
"""Joins one or more path components."""
result = path

for p in others:
if p.startswith("/"): # absolute
result = p
elif not result or result.endswith("/"):
result += p
else:
result += "/" + p

return result

def subdir_glob(glob_specs, exclude = None, prefix = ""):
"""Returns a dict of sub-directory relative paths to full paths.
Expand Down

0 comments on commit 2e66f8d

Please sign in to comment.