diff src/sync.coffee @ 17:a52b5b244e51

removed unnecessary underscore and replaced it with async
author Mathias Gebbe <mgebbe@intevation.de>
date Fri, 13 Jun 2014 15:18:36 +0200
parents 6fd0a307850f
children 6b3f38af3fa4
line wrap: on
line diff
--- a/src/sync.coffee	Thu Jun 12 20:58:06 2014 +0200
+++ b/src/sync.coffee	Fri Jun 13 15:18:36 2014 +0200
@@ -32,12 +32,9 @@
       if user.id.indexOf('@facebook') isnt -1
         console.log "start sync for facebook user"
         Facebook.sync(user)
-      return
     ), (err) ->
-      return
   catch err
     console.log 'Error!'
-    return
 
   # Twitter
   try
@@ -45,12 +42,9 @@
       if user.id.indexOf('@twitter') isnt -1
         console.log "start sync for twitter user"
         Twitter.sync(user)
-      return
     ), (err) ->
-      return
   catch err
     console.log 'Error!'
-    return
 
 
   # Google
@@ -59,12 +53,9 @@
       if user.id.indexOf('@google') isnt -1
         console.log "start sync for google user"
         Google.sync(user)
-      return
     ), (err) ->
-      return
   catch err
     console.log 'Error!'
-    return
   ####
   return
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)