There was a lot of copy-paste code, and in particular one of the most important pieces of setup information (the value of the `lastExpirationNagSent` field) we often hidden off to the right of the screen. This extracts out common logic into helper functions and replaces manual INSERTs with gorp inserts. |
||
|---|---|---|
| .. | ||
| main.go | ||
| main_test.go | ||
| send_test.go | ||