Skip to content

Commit

Permalink
Fix JSHint/mixed tabs and spaces errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Apr 7, 2013
1 parent 76fb804 commit 34a7b41
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"bootstrap": false,
"cajaVM": false,
"define": false,
"Q": true,
"ReturnValue": false,
"ses": false,
"setImmediate": false
Expand Down
32 changes: 16 additions & 16 deletions q.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

(function (definition) {
// Turn off strict mode for this function so we can assign to global.Q
/*jshint strict: false*/
/*jshint strict: false, -W117*/

// This file will function properly as a <script> tag, or a module
// using CommonJS and NodeJS or RequireJS module formats. In
Expand Down Expand Up @@ -107,9 +107,9 @@ if (typeof setImmediate === "function") {
usedTicks = 0;
maxPendingTicks *= 4; // fast grow!
var expectedTicks = queuedTasks && Math.min(
queuedTasks - 1,
maxPendingTicks
);
queuedTasks - 1,
maxPendingTicks
);
while (pendingTicks < expectedTicks) {
++pendingTicks;
requestTick();
Expand All @@ -130,9 +130,9 @@ if (typeof setImmediate === "function") {
nextTick = function (task) {
tail = tail.next = {task: task, next: null};
if (
pendingTicks < ++queuedTasks &&
pendingTicks < maxPendingTicks
) {
pendingTicks < ++queuedTasks &&
pendingTicks < maxPendingTicks
) {
++pendingTicks;
requestTick();
}
Expand Down Expand Up @@ -420,8 +420,8 @@ function defer() {
// memory leaks as per GH-111. At the same time, cut off the first line;
// it's always just "[object Promise]\n", as per the `toString`.
promise.stack = promise.stack.substring(
promise.stack.indexOf("\n") + 1
);
promise.stack.indexOf("\n") + 1
);
}

function become(resolvedValue) {
Expand Down Expand Up @@ -449,14 +449,14 @@ function defer() {
deferred.notify = function (progress) {
if (pending) {
array_reduce(
progressListeners,
function (undefined, progressListener) {
progressListeners,
function (undefined, progressListener) {
nextTick(function () {
progressListener(progress);
});
},
void 0
);
},
void 0
);
}
};

Expand Down Expand Up @@ -515,8 +515,8 @@ function makePromise(descriptor, fallback, valueOf, exception, isException) {
if (fallback === void 0) {
fallback = function (op) {
return reject(new Error(
"Promise does not support operation: " + op
));
"Promise does not support operation: " + op
));
};
}

Expand Down

0 comments on commit 34a7b41

Please sign in to comment.