Skip to content

Commit

Permalink
perf: reduce use of join in _to_out_path
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbarsky authored and jbedard committed Sep 7, 2024
1 parent 0796649 commit 34f8ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/private/ts_lib.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ def _to_out_path(f, out_dir, root_dir):
f = f[f.find(":") + 1:]
if root_dir:
f = f.removeprefix(root_dir + "/")
if out_dir:
f = _join(out_dir, f)
if out_dir and out_dir != ".":
f = out_dir + "/" + f
return f

def _to_js_out_paths(srcs, out_dir, root_dir, allow_js, resolve_json_module, ext_map):
Expand Down

0 comments on commit 34f8ff9

Please sign in to comment.