             done err
 
 
-        if not urlImage?
-            return
-        opts = url.parse(urlImage)
-        opts.headers =
-            'User-Agent': agent
-        https.get opts, (stream) ->
-            stream.on 'error', (err) -> log.error err
-
-            updatedContact.attachFile stream, {name: 'picture'}, (err)->
-                if err
-                    log.error "picture #{err}"
-                else
-                    log.debug "picture ok"
+        if urlImage?
+            opts = url.parse(urlImage)
+            opts.headers =
+                'User-Agent': agent
+            https.get opts, (stream) ->
+                stream.on 'error', (err) -> log.error err
+
+                updatedContact.attachFile stream, {name: 'picture'}, (err)->
+                    if err
+                        log.error "picture #{err}"
+                    else
+                        log.debug "picture ok"
 
 
     updateContact = (fromCozy, fromLinkedin) ->
         CompareContacts.mergeContacts fromCozy, fromLinkedin
         fromCozy.save endSavePicture
-
 
 
     if not linkAccount?

            entries.tag = null
        else
            entries.tag = tag
        entries.listContacts.forEach (contact) ->
            queue.push contact, (err, finalContact) ->
                log.error err if err
                saveContact finalContact, entries


            name: 'email'
            value: email.email
            type: 'internet'
            pref: email.primary is true ? true : undefined
    listEmails


