saintpete / logrole

Logrole for Twilio - Create User Roles for Limited Access to Twilio Logs
Other
27 stars 10 forks source link

Make Phone Number Instance more DRY #15

Open kevinburke opened 7 years ago

kevinburke commented 7 years ago

We have four inline functions for calls from / calls to / msg from / msg to. We could clean this up a little bit, and/or call four helper functions to get the relevant data.

We could also create one struct that has Loc / Number and share it across all four, and/or put Err on the same struct.