Skip to content

Commit a484259

Browse files
committed
Fix format; "=>'
clang-format updated to v1.0.36 which checks double quotation.
1 parent 1ff3fa9 commit a484259

22 files changed

+103
-103
lines changed

build/gocommand.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ function checkGoVersion() {
108108
if (semver.lt(currentGoVersion, minGoVersion)) {
109109
deferred.reject(
110110
new Error(
111-
`The current go version "${currentGoVersion}" is older than ` +
112-
`the minimum required version "${minGoVersion}". ` +
111+
`The current go version '${currentGoVersion}' is older than ` +
112+
`the minimum required version '${minGoVersion}'. ` +
113113
`Please upgrade your go version!`));
114114
return;
115115
}

build/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ gulp.task('styles', function() {
3939
.pipe(gulpSourcemaps.init())
4040
.pipe(gulpSass(sassOptions))
4141
.pipe(gulpAutoprefixer())
42-
.pipe(gulpSourcemaps.write("."))
42+
.pipe(gulpSourcemaps.write('.'))
4343
.pipe(gulp.dest(conf.paths.serve))
4444
// If BrowserSync is running, inform it that styles have changed.
4545
.pipe(browserSyncInstance.stream());

src/app/frontend/deploy/deploy_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default class DeployController {
5656
* represents the default selection.
5757
* @export {string}
5858
*/
59-
this.selection = "Settings";
59+
this.selection = 'Settings';
6060

6161
/** @private {!ui.router.$state} */
6262
this.state_ = $state;

src/app/frontend/deploy/deploylabel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class DeployLabel {
4646
value(newValue) {
4747
if (this.derivedValueGetter_ !== undefined) {
4848
if (newValue !== undefined) {
49-
throw Error("Can not set value of derived label.");
49+
throw Error('Can not set value of derived label.');
5050
}
5151

5252
return this.derivedValueGetter_(this.key);

src/app/frontend/deploy/deploylabel_controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default class DeployLabelController {
108108
/** @type {boolean} */
109109
let isPrefixed = PrefixPattern.test(this.label.key);
110110
/** @type {number} */
111-
let slashPosition = isPrefixed ? this.label.key.indexOf("/") : -1;
111+
let slashPosition = isPrefixed ? this.label.key.indexOf('/') : -1;
112112

113113
/** @type {boolean} */
114114
let isUnique = !this.isKeyDuplicated_();
@@ -165,7 +165,7 @@ export default class DeployLabelController {
165165
/** @type {!RegExp} */
166166
let labelKeyPrefixPattern = /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/;
167167
/** @type {string} */
168-
let labelPrefix = isPrefixed ? this.label.key.substring(0, slashPosition) : "valid-pattern";
168+
let labelPrefix = isPrefixed ? this.label.key.substring(0, slashPosition) : 'valid-pattern';
169169

170170
return (labelKeyPrefixPattern.test(labelPrefix));
171171
}

src/test/frontend/common/components/middleellipsis/middleellipsis_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ describe('Middle ellipsis', () => {
4343
}
4444

4545
return angular.element(`
46-
<div style="width: ${availableWidth}px; display: block;" id="fixture">
47-
<div style="width: 100%; display: block;" class="kd-middleellipsis-container">
48-
<span class="kd-middleellipsis">${displayText}</span>
46+
<div style='width: ${availableWidth}px; display: block;' id='fixture'>
47+
<div style='width: 100%; display: block;' class='kd-middleellipsis-container'>
48+
<span class='kd-middleellipsis'>${displayText}</span>
4949
</div>
5050
</div>`);
5151
}

src/test/frontend/common/docker/dockerimagereference_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('DokcerImageReference', () => {
2929

3030
it('should return empty string when containerImage is empty', () => {
3131
// given
32-
let reference = "";
32+
let reference = '';
3333

3434
// when
3535
let result = new DockerImageReference(reference).tag();
@@ -160,7 +160,7 @@ describe('DokcerImageReference', () => {
160160

161161
it('should retrun empty when containerImage is not empty and ends with `:` delimiter', () => {
162162
// given
163-
let reference = "test:";
163+
let reference = 'test:';
164164

165165
// when
166166
let result = new DockerImageReference(reference).tag();
@@ -171,7 +171,7 @@ describe('DokcerImageReference', () => {
171171

172172
it('should retrun empty when containerImage is not empty and ends with `/` delimiter', () => {
173173
// given
174-
let reference = "test/";
174+
let reference = 'test/';
175175

176176
// when
177177
let result = new DockerImageReference(reference).tag();

src/test/frontend/common/errorhandling/errorhandling_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ describe('Errorhandling service', () => {
3131
it('should show error title and error message in the md dialog', () => {
3232
spyOn(mdDialog, 'show');
3333
/** @type {string} */
34-
let errorTitle = "Error title";
34+
let errorTitle = 'Error title';
3535
/** @type {string} */
36-
let errorMessage = "Error message";
36+
let errorMessage = 'Error message';
3737
// open the error dialog
3838
errorDialog.open(errorTitle, errorMessage);
3939
// and expect it to show

src/test/frontend/common/filters/applymiddleellipsis_filter_test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,37 @@ describe('Apply ellipsis filter', () => {
2121
it('has a applyMiddleEllipsis filter',
2222
angular.mock.inject(function($filter) { expect($filter('middleEllipsis')).not.toBeNull(); }));
2323

24-
it("should return the same value if max parameter is undefined",
24+
it('should return the same value if max parameter is undefined',
2525
angular.mock.inject(function(middleEllipsisFilter) {
2626
expect(middleEllipsisFilter(testedString)).toEqual('podName');
2727
}));
2828

29-
it("should return the same value if length less then given max length parameter",
29+
it('should return the same value if length less then given max length parameter',
3030
angular.mock.inject(function(middleEllipsisFilter) {
3131
expect(middleEllipsisFilter(testedString, 10)).toEqual('podName');
3232
}));
3333

34-
it("should return the same value when max = 0",
34+
it('should return the same value when max = 0',
3535
angular.mock.inject(function(middleEllipsisFilter) {
3636
expect(middleEllipsisFilter(testedString, 0)).toEqual('podName');
3737
}));
3838

39-
it("should return truncated value with ellipsis as tail",
39+
it('should return truncated value with ellipsis as tail',
4040
angular.mock.inject(function(middleEllipsisFilter) {
4141
expect(middleEllipsisFilter(testedString, 1)).toEqual('p...');
4242
}));
4343

44-
it("should return truncated value with the ellipsis in the middle",
44+
it('should return truncated value with the ellipsis in the middle',
4545
angular.mock.inject(function(middleEllipsisFilter) {
4646
expect(middleEllipsisFilter(testedString, 2)).toEqual('p...e');
4747
}));
4848

49-
it("should return truncated value with the ellipsis in the middle",
49+
it('should return truncated value with the ellipsis in the middle',
5050
angular.mock.inject(function(middleEllipsisFilter) {
5151
expect(middleEllipsisFilter(testedString, 3)).toEqual('po...e');
5252
}));
5353

54-
it("should return truncated value with the ellipsis in the middle",
54+
it('should return truncated value with the ellipsis in the middle',
5555
angular.mock.inject(function(middleEllipsisFilter) {
5656
expect(middleEllipsisFilter(testedString, 5)).toEqual('pod...me');
5757
}));

src/test/frontend/common/filters/relativetime_filter_test.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ describe('Relative time filter', () => {
5050
expect(relativeTime).toEqual(`didn't happen yet`);
5151
});
5252

53-
it("should return 'just now' string if given time is the same as current time", () => {
53+
it('should return \'just now\' string if given time is the same as current time', () => {
5454
// when
5555
let relativeTime = relativeTimeFilter(givenTime);
5656

5757
// then
5858
expect(relativeTime).toEqual('just now');
5959
});
6060

61-
it("should return 'a second' string if given time is a second before current time", () => {
61+
it('should return \'a second\' string if given time is a second before current time', () => {
6262
// given
6363
givenTime.setSeconds(givenTime.getSeconds() - 1);
6464

@@ -69,7 +69,7 @@ describe('Relative time filter', () => {
6969
expect(relativeTime).toEqual('a second');
7070
});
7171

72-
it("should return '15 seconds' string if given time is 15 seconds before current time", () => {
72+
it('should return \'15 seconds\' string if given time is 15 seconds before current time', () => {
7373
// given
7474
givenTime.setSeconds(givenTime.getSeconds() - 15);
7575

@@ -80,7 +80,7 @@ describe('Relative time filter', () => {
8080
expect(relativeTime).toEqual('15 seconds');
8181
});
8282

83-
it("should return 'a minute' string if given time is a minute before current time", () => {
83+
it('should return \'a minute\' string if given time is a minute before current time', () => {
8484
// given
8585
givenTime.setMinutes(givenTime.getMinutes() - 1);
8686

@@ -91,7 +91,7 @@ describe('Relative time filter', () => {
9191
expect(relativeTime).toEqual('a minute');
9292
});
9393

94-
it("should return '30 minutes' string if given time is 30 minutes before current time", () => {
94+
it('should return \'30 minutes\' string if given time is 30 minutes before current time', () => {
9595
// given
9696
givenTime.setMinutes(givenTime.getMinutes() - 30);
9797

@@ -102,7 +102,7 @@ describe('Relative time filter', () => {
102102
expect(relativeTime).toEqual('30 minutes');
103103
});
104104

105-
it("should return 'an hour' string if given time is an hour before current time", () => {
105+
it('should return \'an hour\' string if given time is an hour before current time', () => {
106106
// given
107107
givenTime.setHours(givenTime.getHours() - 1);
108108

@@ -113,7 +113,7 @@ describe('Relative time filter', () => {
113113
expect(relativeTime).toEqual('an hour');
114114
});
115115

116-
it("should return '3 hours' string if given time is 3 hours before current time", () => {
116+
it('should return \'3 hours\' string if given time is 3 hours before current time', () => {
117117
// given
118118
givenTime.setHours(givenTime.getHours() - 3);
119119

@@ -124,7 +124,7 @@ describe('Relative time filter', () => {
124124
expect(relativeTime).toEqual('3 hours');
125125
});
126126

127-
it("should return 'a day' string if given time is a day before current time", () => {
127+
it('should return \'a day\' string if given time is a day before current time', () => {
128128
// given
129129
givenTime.setDate(givenTime.getDate() - 1);
130130

@@ -135,7 +135,7 @@ describe('Relative time filter', () => {
135135
expect(relativeTime).toEqual('a day');
136136
});
137137

138-
it("should return '8 days' string if given time is 8 days before current time", () => {
138+
it('should return \'8 days\' string if given time is 8 days before current time', () => {
139139
// given
140140
givenTime.setDate(givenTime.getDate() - 8);
141141

@@ -146,7 +146,7 @@ describe('Relative time filter', () => {
146146
expect(relativeTime).toEqual('8 days');
147147
});
148148

149-
it("should return 'a month' string if given time is a month before current time", () => {
149+
it('should return \'a month\' string if given time is a month before current time', () => {
150150
// given
151151
givenTime.setMonth(givenTime.getMonth() - 1);
152152

@@ -157,7 +157,7 @@ describe('Relative time filter', () => {
157157
expect(relativeTime).toEqual('a month');
158158
});
159159

160-
it("should return '11 months' string if given time is 11 months before current time", () => {
160+
it('should return \'11 months\' string if given time is 11 months before current time', () => {
161161
// given
162162
givenTime.setMonth(givenTime.getMonth() - 11);
163163

@@ -168,7 +168,7 @@ describe('Relative time filter', () => {
168168
expect(relativeTime).toEqual('11 months');
169169
});
170170

171-
it("should return 'a year' string if given time is a year before current time", () => {
171+
it('should return \'a year\' string if given time is a year before current time', () => {
172172
// given
173173
givenTime.setYear(givenTime.getFullYear() - 1);
174174

@@ -179,7 +179,7 @@ describe('Relative time filter', () => {
179179
expect(relativeTime).toEqual('a year');
180180
});
181181

182-
it("should return '134 years' string if given time is 134 years before current time", () => {
182+
it('should return \'134 years\' string if given time is 134 years before current time', () => {
183183
// given
184184
givenTime.setYear(givenTime.getFullYear() - 134);
185185

@@ -190,8 +190,8 @@ describe('Relative time filter', () => {
190190
expect(relativeTime).toEqual('134 years');
191191
});
192192

193-
it("should return '11 months' string if given time is 11 months, 7 days, 5 hours and 3 minutes" +
194-
" before current time",
193+
it('should return \'11 months\' string if given time is 11 months, 7 days, 5 hours and 3 minutes' +
194+
' before current time',
195195
() => {
196196
// given
197197
givenTime.setMonth(givenTime.getMonth() - 11);

0 commit comments

Comments
 (0)