Skip to content

Commit f692b6b

Browse files
Sebastian FlorekSebastian Florek
authored andcommitted
Merge pull request #572 from bryk/formatter-release
Reformat code on new formatter release
2 parents cbbe42a + 0e7ee82 commit f692b6b

File tree

12 files changed

+27
-49
lines changed

12 files changed

+27
-49
lines changed

build/cluster.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,8 @@ gulp.task('wait-for-cluster', function(doneFn) {
141141

142142
function isRunning() {
143143
if (counter % 10 === 0) {
144-
gulpUtil.log(
145-
gulpUtil.colors.magenta(
146-
`Waiting for a Kubernetes cluster at ${conf.backend.apiServerHost}...`));
144+
gulpUtil.log(gulpUtil.colors.magenta(
145+
`Waiting for a Kubernetes cluster at ${conf.backend.apiServerHost}...`));
147146
}
148147
counter += 1;
149148

build/dependencies.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ function checkDependencies(packageManager) {
8989
.join('');
9090

9191
if (dependenciesStr.length !== 0) {
92-
gulputil.log(
93-
gulputil.colors.yellow(
94-
`Dependencies needed to update:\n${dependenciesStr}\n` +
95-
`Run: 'gulp update-${packageManager}-dependencies', then '${packageManager} install' to update` +
96-
' dependencies.\n'));
92+
gulputil.log(gulputil.colors.yellow(
93+
`Dependencies needed to update:\n${dependenciesStr}\n` +
94+
`Run: 'gulp update-${packageManager}-dependencies', then '${packageManager} install' to update` +
95+
' dependencies.\n'));
9796
}
9897

9998
cb();

build/gocommand.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ function checkGo() {
7373
},
7474
function(error, stdout, stderror) {
7575
if (error || stderror || !stdout) {
76-
deferred.reject(
77-
new Error(
78-
'Go is not on the path. Please pass the PATH variable when you run ' +
79-
'the gulp task with "PATH=$PATH" or install go if you have not yet.'));
76+
deferred.reject(new Error(
77+
'Go is not on the path. Please pass the PATH variable when you run ' +
78+
'the gulp task with "PATH=$PATH" or install go if you have not yet.'));
8079
return;
8180
}
8281
deferred.resolve();
@@ -106,11 +105,10 @@ function checkGoVersion() {
106105
currentGoVersion = `${currentGoVersion}.0`;
107106
}
108107
if (semver.lt(currentGoVersion, minGoVersion)) {
109-
deferred.reject(
110-
new Error(
111-
`The current go version '${currentGoVersion}' is older than ` +
112-
`the minimum required version '${minGoVersion}'. ` +
113-
`Please upgrade your go version!`));
108+
deferred.reject(new Error(
109+
`The current go version '${currentGoVersion}' is older than ` +
110+
`the minimum required version '${minGoVersion}'. ` +
111+
`Please upgrade your go version!`));
114112
return;
115113
}
116114
deferred.resolve();
@@ -131,10 +129,9 @@ function checkGodep() {
131129
},
132130
function(error, stdout, stderror) {
133131
if (error || stderror || !stdout) {
134-
deferred.reject(
135-
new Error(
136-
'Godep is not on the path. ' +
137-
'Please run "npm install" in the base directory of the project.'));
132+
deferred.reject(new Error(
133+
'Godep is not on the path. ' +
134+
'Please run "npm install" in the base directory of the project.'));
138135
return;
139136
}
140137
deferred.resolve();

src/app/frontend/deploy/deploy_controller.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import {
16-
stateName as replicationcontrollers,
17-
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
15+
import {stateName as replicationcontrollers} from 'replicationcontrollerlist/replicationcontrollerlist_state';
1816

1917
/**
2018
* Controller for the deploy view.

src/app/frontend/deploy/deployfromfile_controller.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import {
16-
stateName as replicationcontrollerliststate,
17-
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
15+
import {stateName as replicationcontrollerliststate} from 'replicationcontrollerlist/replicationcontrollerlist_state';
1816

1917
/**
2018
* Controller for the deploy from file directive.

src/app/frontend/deploy/deployfromsettings_controller.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
import showNamespaceDialog from './createnamespace_dialog';
1616
import showCreateSecretDialog from './createsecret_dialog';
1717
import DeployLabel from './deploylabel';
18-
import {
19-
stateName as replicationcontrollerliststate,
20-
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
18+
import {stateName as replicationcontrollerliststate} from 'replicationcontrollerlist/replicationcontrollerlist_state';
2119
import {uniqueNameValidationKey} from './uniquename_directive';
2220
import DockerImageReference from '../common/docker/dockerimagereference';
2321

src/app/frontend/index_route.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import {
16-
stateUrl as replicationControllerStateUrl,
17-
} from './replicationcontrollerlist/replicationcontrollerlist_state';
15+
import {stateUrl as replicationControllerStateUrl} from './replicationcontrollerlist/replicationcontrollerlist_state';
1816

1917
/**
2018
* Global route configuration for the application.

src/app/frontend/replicationcontrollerdetail/replicationcontrollerinfo_controller.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import {
16-
stateName as replicationcontrollers,
17-
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
15+
import {stateName as replicationcontrollers} from 'replicationcontrollerlist/replicationcontrollerlist_state';
1816

1917
/**
2018
* Controller for the replication controller info directive.

src/test/frontend/deploy/createsecret_controller_test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ describe('Create-Secret dialog', () => {
6767
let rule = ctrl.dataPattern;
6868

6969
// then the following data should be accepted
70-
expect(
71-
(`eyAiaHR0cHM6Ly9pbmRleC5kb2NrZXIuaW8` + `vdjEvIjogeyAiYXV0aCI6ICJabUZyWlhCaG` +
72-
`MzTjNiM0prTVRJSyIsICJlbWFpbCI6` + `ICJqZG9lQGV4YW1wbGUuY29tIiB9IH0K`)
73-
.match(rule))
70+
expect((`eyAiaHR0cHM6Ly9pbmRleC5kb2NrZXIuaW8` + `vdjEvIjogeyAiYXV0aCI6ICJabUZyWlhCaG` +
71+
`MzTjNiM0prTVRJSyIsICJlbWFpbCI6` + `ICJqZG9lQGV4YW1wbGUuY29tIiB9IH0K`)
72+
.match(rule))
7473
.toBeDefined();
7574
});
7675

src/test/frontend/deploy/deploy_controller_test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
import DeployController from 'deploy/deploy_controller';
1616
import DeployFromSettingController from 'deploy/deployfromsettings_controller';
1717
import deployModule from 'deploy/deploy_module';
18-
import {
19-
stateName as replicationcontrollers,
20-
} from 'replicationcontrollerlist/replicationcontrollerlist_state';
18+
import {stateName as replicationcontrollers} from 'replicationcontrollerlist/replicationcontrollerlist_state';
2119

2220
describe('Deploy controller', () => {
2321
/** @type {!DeployController} */

0 commit comments

Comments
 (0)