Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Whitespace adjustments to match style guide.

  • Loading branch information...
commit 51b3cef688571c2e0c8b6d41acfaa690d38d8368 1 parent 163dccf
@n1mmy n1mmy authored
View
5 packages/appcache/appcache-client.js
@@ -58,11 +58,10 @@ window.applicationCache.addEventListener('noupdate', cacheIsNowUpToDate, false);
window.applicationCache.addEventListener('obsolete', (function() {
if (reloadRetry) {
cacheIsNowUpToDate();
- }
- else {
+ } else {
appcacheUpdated = true;
Reload._reload();
}
}), false);
-} // if window.applicationCache
+} // if window.applicationCache
View
3  packages/appcache/appcache-server.js
@@ -44,8 +44,7 @@ Meteor.AppCache = {
_.each(value, function (urlPrefix) {
RoutePolicy.declare(urlPrefix, 'static-online');
});
- }
- else {
+ } else {
throw new Error('Invalid AppCache config option: ' + option);
}
});
View
1  packages/livedata/livedata_server_tests.js
@@ -24,7 +24,6 @@ Tinytest.addAsync(
}
);
-
Tinytest.addAsync(
"livedata server - connectionHandle.close()",
function (test, onComplete) {
View
3  packages/liverange/liverange.js
@@ -331,8 +331,7 @@ LiveRange.prototype.visit = function(visitRange, visitNode) {
recurse(rangeStart, rangeEnd, startIndex+1);
visitRange(false, range);
n = rangeEnd;
- }
- else {
+ } else {
// bare node
if (visitNode(true, n) !== false && n.firstChild)
recurse(n.firstChild, n.lastChild);
View
3  packages/mongo-livedata/collection.js
@@ -278,8 +278,7 @@ Meteor.Collection._rewriteSelector = function (selector) {
ret[key] = _.map(value, function (v) {
return Meteor.Collection._rewriteSelector(v);
});
- }
- else {
+ } else {
ret[key] = value;
}
});
View
3  packages/spark/spark.js
@@ -1055,8 +1055,7 @@ Spark.list = function (cursor, itemFunc, elseFunc) {
var frag = itemDict.get(id).liveRange.extract();
if (before === null) {
itemDict.lastValue().liveRange.insertAfter(frag);
- }
- else {
+ } else {
itemDict.get(before).liveRange.insertBefore(frag);
}
itemDict.moveBefore(id, before);
View
6 packages/test-helpers/connection.js
@@ -17,8 +17,7 @@ makeTestConnection = function (test, succeeded, failed) {
if (serverConns[serverConn.id]) {
test.fail("onConnection callback called multiple times for same session id");
failed();
- }
- else {
+ } else {
serverConns[serverConn.id] = serverConn;
}
});
@@ -30,8 +29,7 @@ makeTestConnection = function (test, succeeded, failed) {
if (! serverConn) {
test.fail("No onConnection received server side for connected client");
failed();
- }
- else {
+ } else {
onConnectionHandle.stop();
succeeded(clientConn, serverConn);
}
Please sign in to comment.
Something went wrong with that request. Please try again.