mirror of
https://github.com/wassname/side-by-side.git
synced 2026-10-04 13:00:55 +08:00
Remove unnecessary returns
This commit is contained in:
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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user