From 574dd051bb40010dfe16508311a2c8285da46f7f Mon Sep 17 00:00:00 2001 From: "mohammad.khaleghi" Date: Sat, 16 Mar 2024 00:36:37 +0800 Subject: [PATCH] fix add value to attributes --- rules/kotlin/kotlin.bzl | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/rules/kotlin/kotlin.bzl b/rules/kotlin/kotlin.bzl index 3eda5bf4..944412c6 100644 --- a/rules/kotlin/kotlin.bzl +++ b/rules/kotlin/kotlin.bzl @@ -34,17 +34,10 @@ def kt_jvm_library_interal( tags = tags + [LINT_ENABLED] deps = deps + [lint_sources_target] - attrs = add_value(attrs, "deps", deps) - attrs = add_value(attrs, "tags", tags) + attrs["deps"] = deps + attrs["tags"] = tags kt_jvm_library( name = name, **attrs ) - -def add_value(attrs, name, value): - if name in attrs and attrs[name] != None: - attrs[name] += value - else: - attrs[name] = value - return attrs