Remove unnecessary returns

This commit is contained in:
Vit Brunner committed 2014-10-02 17:17:03 +02:00
1 parent bccd8d253a
commit 24f570623f
5 files changed
+14 -16

No files matched your search

@@ -3,16 +3,16 @@ angular.module("sideBySide").factory "fetch", ['$http', 'readerFactory', ($http,
#
# @param file [String] Path to config file
# @return [Object] Promises and heading
return (file = "/config.json") ->
(file = "/config.json") ->
$http.get(file).then((response) ->
promises = []
for poem in response.data.files
promises.push($http.get(poem).then((response) ->
reader = readerFactory(poem)
return reader(response.data)
reader(response.data)
))
return {
{
promises: promises
heading: response.data.heading
}