style: space after bang

This commit is contained in:
David Glasser
2014-11-07 16:33:29 -08:00
parent 807d61c63f
commit 4fa5ae7bcb
5 changed files with 13 additions and 12 deletions

View File

@@ -597,7 +597,8 @@ _.extend(LocalCatalog.prototype, {
unip = compiler.compile(self.packages[name].packageSource, {
ignoreProjectDeps: constraintSolverOpts.ignoreProjectDeps
}).isopack;
if (! buildmessage.jobHasMessages() && !self.isopacketBuildingCatalog) {
if (! buildmessage.jobHasMessages() &&
! self.isopacketBuildingCatalog) {
// Save the build, for a fast load next time
try {
var buildDir = path.join(sourcePath, '.build.'+ name);

View File

@@ -270,7 +270,7 @@ var determineBuildTimeDependencies = function (packageSource,
// memorizing results makes the constraint solver more efficient.
// (But we don't do this if we're building isopackets.)
if (ret.packageDependencies &&
!packageSource.catalog.isopacketBuildingCatalog) {
! packageSource.catalog.isopacketBuildingCatalog) {
var constraintResults = {
dependencies: ret.packageDependencies,
pluginDependencies: ret.pluginDependencies

View File

@@ -109,7 +109,7 @@ var ensureIsopacketsLoadable = function () {
// If we're not running from checkout, then there's nothing to build and we
// can declare that all isopackets are loadable.
if (!files.inCheckout()) {
if (! files.inCheckout()) {
_.each(ISOPACKETS, function (packages, name) {
loadedIsopackets[name] = null;
});
@@ -128,17 +128,17 @@ var ensureIsopacketsLoadable = function () {
var isopacketRoot = isopacketPath(isopacketName);
var existingBuildinfo = files.readJSONOrNull(
path.join(isopacketRoot, 'isopacket-buildinfo.json'));
var needRebuild = !existingBuildinfo;
if (!needRebuild && existingBuildinfo.builtBy !== compiler.BUILT_BY) {
var needRebuild = ! existingBuildinfo;
if (! needRebuild && existingBuildinfo.builtBy !== compiler.BUILT_BY) {
needRebuild = true;
}
if (!needRebuild) {
if (! needRebuild) {
var watchSet = watch.WatchSet.fromJSON(existingBuildinfo.watchSet);
if (!watch.isUpToDate(watchSet)) {
if (! watch.isUpToDate(watchSet)) {
needRebuild = true;
}
}
if (!needRebuild) {
if (! needRebuild) {
// Great, it's loadable without a rebuild.
loadedIsopackets[isopacketName] = null;
return;
@@ -146,7 +146,7 @@ var ensureIsopacketsLoadable = function () {
// We're going to need to build! Make a catalog and loader if we haven't
// yet.
if (!isopacketCatalog) {
if (! isopacketCatalog) {
isopacketCatalog = newIsopacketBuildingCatalog();
localPackageLoader = new packageLoader.PackageLoader({
versions: null,
@@ -192,7 +192,7 @@ var ensureIsopacketsLoadable = function () {
// Returns a new all-local-packages catalog to be used for building isopackets.
var newIsopacketBuildingCatalog = function () {
if (!files.inCheckout())
if (! files.inCheckout())
throw Error("No need to build isopackets unless in checkout!");
// XXX once a lot more refactors are done, this should be able to just be a

View File

@@ -160,7 +160,7 @@ _.extend(PackageCache.prototype, {
});
// Does it have an up-to-date build?
var buildDir = path.join(loadPath, '.build.'+ name);
if (!self.catalog.isopacketBuildingCatalog && fs.existsSync(buildDir)) {
if (! self.catalog.isopacketBuildingCatalog && fs.existsSync(buildDir)) {
isop = new isopack.Isopack();
var maybeUpToDate = true;
try {

View File

@@ -23,7 +23,7 @@ exports.PackageLoader = function (options) {
// sometimes we might end up with another PackageLoader here. Pretend that it
// didn't tell us versions.
// XXX Delete this code once compiler no longer makes its own PackageLoaders.
if (options.versions && !options.catalog.isopacketBuildingCatalog)
if (options.versions && ! options.catalog.isopacketBuildingCatalog)
self.versions = options.versions;
self.constraintSolverOpts = options.constraintSolverOpts;