index.js
function maybeFireCallback() {
		// This function is called in any place where we might have completed a task that allows us to fire

		if (callbackFired) return;

		// If everything is ready, we *should* fire the callback, and it hasn't already been fired, then do so
		if (stdoutReady && stderrReady && wantCallback && !callbackFired) {
			callbackFired = true;
			callback(callbackErr, stdout);
		}
	}
function maybeFireCallback() {
		// This function is called in any place where we might have completed a task that allows us to fire

		if (callbackFired) return;

		// If everything is ready, we *should* fire the callback, and it hasn't already been fired, then do so
		if (stdoutReady && stderrReady && wantCallback && !callbackFired) {
			callbackFired = true;
			callback(callbackErr, stdout);
		}
	}
function maybeFireCallback ( ) { // This function is called in any place where we might have completed a task that allows us to fire if ( callbackFired ) return ; // If everything is ready, we *should* fire the callback, and it hasn't already been fired, then do so if ( stdoutReady && stderrReady && wantCallback && ! callbackFired ) { callbackFired = true ; callback ( callbackErr , stdout ) ; } }
Done here so it gets the right scope
Done here so it gets the right scope