Skip to content

Commit 67f8445

Browse files
committed
Remove duplicate code
1 parent 528c9b2 commit 67f8445

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/codechecker_config.bzl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,9 @@ def get_config_file(ctx):
3535

3636
# Create CodeChecker JSON config file and env vars
3737
if ctx.attr.config:
38-
if type(ctx.attr.config) == "list":
39-
config_info = ctx.attr.config[0][CodeCheckerConfigInfo]
40-
else:
41-
config_info = ctx.attr.config[CodeCheckerConfigInfo]
4238
if config_info.config_file:
4339
# Create a copy of CodeChecker configuration file
4440
# provided via codechecker_config(config_file)
45-
config_file = config_info.config_file.files.to_list()[0]
4641
ctx.actions.run(
4742
inputs = [config_file],
4843
outputs = [ctx_config_file],

0 commit comments

Comments
 (0)