Skip to content

Commit

Permalink
force use of curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
janpieper committed Oct 23, 2013
1 parent 14ad836 commit 2b936c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"laxbreak": true,
"indent": 2
"indent": 2,
"curly": true
}
4 changes: 3 additions & 1 deletion lib/navdata/parseNavdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ var NavdataReader = require('./NavdataReader');
// call `iterator` `n` times, returning an array of the results
var timesMap = function(n, iterator, context) {
var results = [];
for (var i = 0; i < n; i++) results[i] = iterator.call(context, i);
for (var i = 0; i < n; i++) {
results[i] = iterator.call(context, i);
}
return results;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ server.listen(common.TCP_PORT, function() {
var video = new TcpVideoStream({ip: 'localhost', port: common.TCP_PORT, timeout: 100});

video.connect(function(err) {
if (err) throw err;
if (err) { throw err; }

events.push('connectCb');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ server.listen(common.TCP_PORT, function() {
var video = new TcpVideoStream({ip: 'localhost', port: common.TCP_PORT});

video.connect(function(err) {
if (err) throw err;
if (err) { throw err; }

events.push('connectCb');
});
Expand Down

0 comments on commit 2b936c5

Please sign in to comment.