Skip to content

Commit c0769af

Browse files
committed
JS compiler fixes after new compiler release
1 parent 185a7d0 commit c0769af

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

build/script.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ gulp.task('scripts:prod', ['angular-templates'], function() {
8888
jscomp_error: '*',
8989
// Disable checks that are not applicable to the project.
9090
jscomp_off: [
91-
// This check does not work correctly with ES6.
92-
'inferredConstCheck',
9391
// Let ESLint handle all lint checks.
9492
'lintChecks',
9593
// This checks aren't working with current google-closure-library version. Will be deleted

src/app/frontend/common/components/labels/labels_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class LabelsController {
3737
/**
3838
* Returns true if element at index position should be visible.
3939
*
40-
* @param index
40+
* @param {number} index
4141
* @return {boolean}
4242
* @export
4343
*/

src/app/frontend/common/components/sparkline/sparkline_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class SparklineController {
3232

3333
/**
3434
* Formats the underlying series suitable for display as an SVG polygon.
35-
* @return string
35+
* @return {string}
3636
* @export
3737
*/
3838
polygonPoints() {

src/app/frontend/logs/logs_state.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export class StateParams {
2626
* @param {string} namespace
2727
* @param {string} replicationController
2828
* @param {string} podId
29-
* @param {string=} [container]
29+
* @param {string=} opt_container
3030
*/
31-
constructor(namespace, replicationController, podId, container) {
31+
constructor(namespace, replicationController, podId, opt_container) {
3232
/** @export {string} Namespace of this Replication Controller. */
3333
this.namespace = namespace;
3434

@@ -39,6 +39,6 @@ export class StateParams {
3939
this.podId = podId;
4040

4141
/** @export {string|undefined} Name of this pod container. */
42-
this.container = container;
42+
this.container = opt_container;
4343
}
4444
}

src/app/frontend/replicationcontrollerlist/zerostate/zerostate_state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const stateName = `${replicationcontrollers}.zero`;
2424
*/
2525
export class StateParams {
2626
/**
27-
* @param containsOnlyKubeSystemRCs
27+
* @param {boolean} containsOnlyKubeSystemRCs
2828
*/
2929
constructor(containsOnlyKubeSystemRCs) {
3030
/** @type {boolean} whether there are only RCs in namespace "kube-system" */

0 commit comments

Comments
 (0)