Skip to content

Commit

Permalink
Merge pull request #154 from grab/fix-add-value-to-attributes
Browse files Browse the repository at this point in the history
fix add value to attributes
  • Loading branch information
mohammadkahelghi-grabtaxi authored Mar 15, 2024
2 parents 3f9ff2c + 2d0489a commit 092435f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/kotlin/kotlin.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def kt_jvm_library_interal(

def add_value(attrs, name, value):
if name in attrs and attrs[name] != None:
attrs[name] = attrs.get(name, default = []) + [value]
attrs[name] += value
else:
attrs[name] = [value]
attrs[name] = value
return attrs

0 comments on commit 092435f

Please sign in to comment.