asap/weather-wizard — pull request #1 by dirn (2013-12-27 15:49:29+00:00)
Title: Simplify returning from forecast()

Rather than keeping track of two separate calls to `jsonify`, the conditional logic can be used to control its arguments. If the arguments or logic grow more complicated over time, they can always be captured in a variable that gets passed to `jsonify`.