Skip to content

Commit

Permalink
Remove condition
Browse files Browse the repository at this point in the history
  • Loading branch information
borkaehw committed Jan 31, 2020
1 parent 2a70763 commit f627ac6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions scala/private/phases/phase_coverage.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def _phase_coverage_default(ctx, p, _args = struct()):
)

def _phase_coverage(ctx, p, srcjars):
if len(ctx.files.srcs) + len(srcjars.to_list()) == 0 or \
not ctx.configuration.coverage_enabled or \
not hasattr(ctx.attr, "_code_coverage_instrumentation_worker"):
if len(ctx.files.srcs) + len(srcjars.to_list()) == 0 or not ctx.configuration.coverage_enabled:
return struct(
replacements = {},
external_providers = {},
Expand Down
1 change: 0 additions & 1 deletion scala/private/rules/scala_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def _scala_library_for_plugin_bootstrapping_impl(ctx):
("write_manifest", phase_write_manifest),
("collect_jars", phase_collect_jars_library_for_plugin_bootstrapping),
("compile", phase_compile_library_for_plugin_bootstrapping),
("coverage", phase_coverage_common),
("merge_jars", phase_merge_jars),
("runfiles", phase_runfiles_library),
("collect_exports_jars", phase_collect_exports_jars),
Expand Down

0 comments on commit f627ac6

Please sign in to comment.