Skip to content

Commit

Permalink
Use forEach in the Map instead of Map.values() (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Oct 8, 2018
1 parent 64d0b66 commit 4ecf9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erizo_controller/erizoController/models/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Rooms extends events.EventEmitter {
}

forEachRoom(doSomething) {
this.rooms.values().forEach((room) => {
this.rooms.forEach((room) => {
doSomething(room);
});
}
Expand Down

0 comments on commit 4ecf9d9

Please sign in to comment.