Skip to content

Commit

Permalink
style(Server): Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermelimak committed Mar 6, 2017
1 parent 096bf64 commit f41ca95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class RemServer {
return console.error('Argument event is not an instance of the Event class')
}

this.connectionsList.items.find(i => i.id === socketId).socket.send(event)
this.connectionsList.items.find(c => c.id === socketId).socket.send(event)

return this
}
Expand All @@ -89,11 +89,7 @@ export default class RemServer {
*
* @method close
*/
close() {
this.ws.close()

return this
}
close() { this.ws.close(); return this }

get ws() { return this._ws }
set ws(val) { this._ws = val }
Expand Down
3 changes: 3 additions & 0 deletions src/serverModules/list.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* List used to hold objects
*/
export default class List {
constructor() { this.items = [] }

Expand Down

0 comments on commit f41ca95

Please sign in to comment.