Skip to content

Try using *args in merge - #1

Open
c24t wants to merge 1 commit into
better-resource-detectionfrom
better-resource-detection-varargs-hack
Open

Try using *args in merge#1
c24t wants to merge 1 commit into
better-resource-detectionfrom
better-resource-detection-varargs-hack

Conversation

@c24t

@c24tc24t commented Feb 22, 2019

Copy link
Copy Markdown
Owner

No description provided.

if not resources:
return None
return resource.merge_resources(resources)
return resource.merge_resources(resources[0], *resources[1:])

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's not really a beautiful way to do this here since any of the resources could be null.

@c24t
c24tforce-pushed the better-resource-detection branch from 5634048 to a31fdbbCompareMarch 8, 2019 22:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@c24t