GlobeTownDevs / api

0 stars 1 forks source link

Populating the document object with nested function #34

Closed SavageWilliam closed 8 years ago

SavageWilliam commented 8 years ago

Not a biggy... but index.js ln:106 (line 106) contains your nested function to save each source's information in your database object.

Would there be some benefit to remove this from the getSource() function which sends the API request and instead declare it as a 'helper function' below?

Potentially cleaner code?