Skip to content

Commit

Permalink
refactor: remove unnecessary default param values
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Feb 8, 2024
1 parent 6bf6610 commit a5aadfe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions swc/private/swc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _replace_ext(f, ext_map):
return new_ext
return None

def _calculate_js_out(src, out_dir = None, root_dir = None, js_outs = []):
def _calculate_js_out(src, out_dir, root_dir, js_outs = []):
if not _is_supported_src(src):
return None

Expand All @@ -135,7 +135,7 @@ def _calculate_js_out(src, out_dir = None, root_dir = None, js_outs = []):
break
return js_out

def _calculate_js_outs(srcs, out_dir = None, root_dir = None):
def _calculate_js_outs(srcs, out_dir, root_dir):
if out_dir == None:
js_srcs = []
for src in srcs:
Expand All @@ -146,7 +146,7 @@ def _calculate_js_outs(srcs, out_dir = None, root_dir = None):

return [f2 for f2 in [_calculate_js_out(f, out_dir, root_dir) for f in srcs] if f2]

def _calculate_map_out(src, source_maps, out_dir = None, root_dir = None):
def _calculate_map_out(src, source_maps, out_dir, root_dir):
if source_maps in ["false", "inline"]:
return None
if not _is_supported_src(src):
Expand All @@ -165,7 +165,7 @@ def _calculate_map_out(src, source_maps, out_dir = None, root_dir = None):
map_out = paths.join(out_dir, map_out)
return map_out

def _calculate_map_outs(srcs, source_maps, out_dir = None, root_dir = None):
def _calculate_map_outs(srcs, source_maps, out_dir, root_dir):
return [f2 for f2 in [_calculate_map_out(f, source_maps, out_dir, root_dir) for f in srcs] if f2]

def _calculate_source_file(ctx, src):
Expand Down

0 comments on commit a5aadfe

Please sign in to comment.