提交 0e7ee820 编写于 作者: B bryk

Reformat code on new formatter release

上级 cbbe42a4
......@@ -141,9 +141,8 @@ gulp.task('wait-for-cluster', function(doneFn) {
function isRunning() {
if (counter % 10 === 0) {
gulpUtil.log(
gulpUtil.colors.magenta(
`Waiting for a Kubernetes cluster at ${conf.backend.apiServerHost}...`));
gulpUtil.log(gulpUtil.colors.magenta(
`Waiting for a Kubernetes cluster at ${conf.backend.apiServerHost}...`));
}
counter += 1;
......
......@@ -89,11 +89,10 @@ function checkDependencies(packageManager) {
.join('');
if (dependenciesStr.length !== 0) {
gulputil.log(
gulputil.colors.yellow(
`Dependencies needed to update:\n${dependenciesStr}\n` +
`Run: 'gulp update-${packageManager}-dependencies', then '${packageManager} install' to update` +
' dependencies.\n'));
gulputil.log(gulputil.colors.yellow(
`Dependencies needed to update:\n${dependenciesStr}\n` +
`Run: 'gulp update-${packageManager}-dependencies', then '${packageManager} install' to update` +
' dependencies.\n'));
}
cb();
......
......@@ -73,10 +73,9 @@ function checkGo() {
},
function(error, stdout, stderror) {
if (error || stderror || !stdout) {
deferred.reject(
new Error(
'Go is not on the path. Please pass the PATH variable when you run ' +
'the gulp task with "PATH=$PATH" or install go if you have not yet.'));
deferred.reject(new Error(
'Go is not on the path. Please pass the PATH variable when you run ' +
'the gulp task with "PATH=$PATH" or install go if you have not yet.'));
return;
}
deferred.resolve();
......@@ -106,11 +105,10 @@ function checkGoVersion() {
currentGoVersion = `${currentGoVersion}.0`;
}
if (semver.lt(currentGoVersion, minGoVersion)) {
deferred.reject(
new Error(
`The current go version '${currentGoVersion}' is older than ` +
`the minimum required version '${minGoVersion}'. ` +
`Please upgrade your go version!`));
deferred.reject(new Error(
`The current go version '${currentGoVersion}' is older than ` +
`the minimum required version '${minGoVersion}'. ` +
`Please upgrade your go version!`));
return;
}
deferred.resolve();
......@@ -131,10 +129,9 @@ function checkGodep() {
},
function(error, stdout, stderror) {
if (error || stderror || !stdout) {
deferred.reject(
new Error(
'Godep is not on the path. ' +
'Please run "npm install" in the base directory of the project.'));
deferred.reject(new Error(
'Godep is not on the path. ' +
'Please run "npm install" in the base directory of the project.'));
return;
}
deferred.resolve();
......
......@@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import {
stateName as replicationcontrollers,
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
import {stateName as replicationcontrollers} from 'replicationcontrollerlist/replicationcontrollerlist_state';
/**
* Controller for the deploy view.
......
......@@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import {
stateName as replicationcontrollerliststate,
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
import {stateName as replicationcontrollerliststate} from 'replicationcontrollerlist/replicationcontrollerlist_state';
/**
* Controller for the deploy from file directive.
......
......@@ -15,9 +15,7 @@
import showNamespaceDialog from './createnamespace_dialog';
import showCreateSecretDialog from './createsecret_dialog';
import DeployLabel from './deploylabel';
import {
stateName as replicationcontrollerliststate,
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
import {stateName as replicationcontrollerliststate} from 'replicationcontrollerlist/replicationcontrollerlist_state';
import {uniqueNameValidationKey} from './uniquename_directive';
import DockerImageReference from '../common/docker/dockerimagereference';
......
......@@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import {
stateUrl as replicationControllerStateUrl,
} from './replicationcontrollerlist/replicationcontrollerlist_state';
import {stateUrl as replicationControllerStateUrl} from './replicationcontrollerlist/replicationcontrollerlist_state';
/**
* Global route configuration for the application.
......
......@@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import {
stateName as replicationcontrollers,
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
import {stateName as replicationcontrollers} from 'replicationcontrollerlist/replicationcontrollerlist_state';
/**
* Controller for the replication controller info directive.
......
......@@ -67,10 +67,9 @@ describe('Create-Secret dialog', () => {
let rule = ctrl.dataPattern;
// then the following data should be accepted
expect(
(`eyAiaHR0cHM6Ly9pbmRleC5kb2NrZXIuaW8` + `vdjEvIjogeyAiYXV0aCI6ICJabUZyWlhCaG` +
`MzTjNiM0prTVRJSyIsICJlbWFpbCI6` + `ICJqZG9lQGV4YW1wbGUuY29tIiB9IH0K`)
.match(rule))
expect((`eyAiaHR0cHM6Ly9pbmRleC5kb2NrZXIuaW8` + `vdjEvIjogeyAiYXV0aCI6ICJabUZyWlhCaG` +
`MzTjNiM0prTVRJSyIsICJlbWFpbCI6` + `ICJqZG9lQGV4YW1wbGUuY29tIiB9IH0K`)
.match(rule))
.toBeDefined();
});
......
......@@ -15,9 +15,7 @@
import DeployController from 'deploy/deploy_controller';
import DeployFromSettingController from 'deploy/deployfromsettings_controller';
import deployModule from 'deploy/deploy_module';
import {
stateName as replicationcontrollers,
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
import {stateName as replicationcontrollers} from 'replicationcontrollerlist/replicationcontrollerlist_state';
describe('Deploy controller', () => {
/** @type {!DeployController} */
......
......@@ -14,9 +14,7 @@
import ReplicationControllerInfoController from 'replicationcontrollerdetail/replicationcontrollerinfo_controller';
import replicationControllerDetailModule from 'replicationcontrollerdetail/replicationcontrollerdetail_module';
import {
stateName as replicationcontrollers,
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
import {stateName as replicationcontrollers} from 'replicationcontrollerlist/replicationcontrollerlist_state';
describe('Replication Controller Detail controller', () => {
/**
......
......@@ -12,9 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import {
binarySearchOptimalHeight,
} from 'replicationcontrollerlist/replicationcontrollerlistcontainer';
import {binarySearchOptimalHeight} from 'replicationcontrollerlist/replicationcontrollerlistcontainer';
describe('Replication controller list container', () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册