Skip to content
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

consolidating routes #131

Merged
merged 9 commits into from
Sep 19, 2016
Merged

consolidating routes #131

merged 9 commits into from
Sep 19, 2016

Conversation

mmcquillan
Copy link
Owner

No description provided.

for _, route := range config.Routes {
for _, m := range route.Matches {
match := true
match, _ = parse.Match(m.Message, message.Out.Text+" "+message.Out.Detail)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we simplify this logic? Or is this for readability?

Copy link
Owner Author

Choose a reason for hiding this comment

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

This was for readability, but what do you have in mind?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fine then. Just felt like it was something that could be refactored/condensed :)

Copy link
Owner Author

Choose a reason for hiding this comment

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

I did fix it over the weekend to pass in the match by reference so as to read slightly better.

@mmcquillan mmcquillan merged commit 420a1fd into master Sep 19, 2016
@mmcquillan mmcquillan deleted the feature/routing branch September 19, 2016 19:29
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