Skip to content

Conversation

@simonLeary42
Copy link
Collaborator

the only reason I can think of not to default to [] is that it wouldn't be intuitive for non array values, but we are already doing getAttribute("cn")[0], so non array values are already returned as arrays. https://github.com/search?q=repo%3AUnityHPC%2Funity-web-portal+getAttribute+%22%5B0%5D%22&type=code

@simonLeary42
Copy link
Collaborator Author

The case could also be made that attributes such as cn should not be returned as an array, in which case an undefined attribute should not be an empty array.

@simonLeary42
Copy link
Collaborator Author

Sign up for free to 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.

2 participants