-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add method on entities for concatenating locations #29
Conversation
This eliminates some repetition in the location client by implementing Stringer on a LocationList as a comma separated list of the location names.
} | ||
|
||
return errors.New(fmt.Sprintf(invalidLocationError, location, strings.Trim(availableLocations.String(), ", "))) | ||
return errors.New(fmt.Sprintf(invalidLocationError, location, locations.String())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.String()
is redundant
also please consider using |
@ahmetalpbalkan that was due to a missing email address on GitHub - not sure where it went... All fixed now. |
LGTM |
Signed. Was fairly sure I'd done that in the past but apparently before that system! |
Add method on entities for concatenating locations
* Added missing parameters As a bonus, updated all documentation links * Fix Travis * Comments from review
* Added missing parameters As a bonus, updated all documentation links * Fix Travis * Comments from review
* Added missing parameters As a bonus, updated all documentation links * Fix Travis * Comments from review
Merge pull request #29 from leonardbf/ANF-169-add-07-swagger ANF-169 add 2019-07-01 swagger
As discussed in #26.
This eliminates some repetition in the location client by implementing Stringer on a LocationList as a comma separated list of the location names.