       @emit 'detach', socket, index
       return
     @emit 'detach', socket
+    return
 
   isAddressable: ->
     return true if @options.addressable
-    false
+    return false
 
   isBuffered: ->
     return true if @options.buffered
-    false
+    return false
 
   isRequired: ->
     return true if @options.required
-    false
+    return false
 
   isAttached: (socketId = null) ->
     if @isAddressable() and socketId isnt null
       return true if @sockets[socketId]
       return false
     return true if @sockets.length
-    false
+    return false
 
   listAttached: ->
     attached = []
     for socket, idx in @sockets
       continue unless socket
       attached.push idx
-    attached
+    return attached
 
   isConnected: (socketId = null) ->
     if @isAddressable()

        connected = true
    return connected

  canAttach: -> true

module.exports = BasePort

      @emit 'attach', socket, index
      return
    @emit 'attach', socket
    return

  attachSocket: -> return

  detach: (socket) ->
    index = @sockets.indexOf socket
