Skip to content

Commit a382d6d

Browse files
alfaprojectvsavkin
authored andcommitted
style: add missing semicolons
1 parent 52bf188 commit a382d6d

File tree

15 files changed

+29
-32
lines changed

15 files changed

+29
-32
lines changed

modules/benchmarks/e2e_test/old/naive_infinite_scroll_spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ describe('ng2 naive infinite scroll benchmark', function() {
4949
firstTextOf(`${ stageButtons }:enabled`).then(function(text) {
5050
expect(text).toEqual('Pitched');
5151
clickFirstOf(`${ stageButtons }:enabled`).then(function() {
52-
firstTextOf(`${ stageButtons }:enabled`).then(function(text) {
53-
expect(text).toEqual('Won');
54-
})
52+
firstTextOf(`${ stageButtons }:enabled`).then((text) => expect(text).toEqual('Won'));
5553
});
5654
});
5755

modules/benchmarks_external/src/compiler/compiler_benchmark.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ angular.module('app', [])
3939
return {
4040
compile: function($element, $attrs) {
4141
var expr = $parse($attrs.attr0);
42-
return function($scope) { $scope.$watch(expr, angular.noop); }
42+
return ($scope) => $scope.$watch(expr, angular.noop);
4343
}
4444
};
4545
}
@@ -51,7 +51,7 @@ angular.module('app', [])
5151
return {
5252
compile: function($element, $attrs) {
5353
var expr = $parse($attrs.attr1);
54-
return function($scope) { $scope.$watch(expr, angular.noop); }
54+
return ($scope) => $scope.$watch(expr, angular.noop);
5555
}
5656
};
5757
}
@@ -63,7 +63,7 @@ angular.module('app', [])
6363
return {
6464
compile: function($element, $attrs) {
6565
var expr = $parse($attrs.attr2);
66-
return function($scope) { $scope.$watch(expr, angular.noop); }
66+
return ($scope) => $scope.$watch(expr, angular.noop);
6767
}
6868
};
6969
}
@@ -75,7 +75,7 @@ angular.module('app', [])
7575
return {
7676
compile: function($element, $attrs) {
7777
var expr = $parse($attrs.attr3);
78-
return function($scope) { $scope.$watch(expr, angular.noop); }
78+
return ($scope) => $scope.$watch(expr, angular.noop);
7979
}
8080
};
8181
}
@@ -87,7 +87,7 @@ angular.module('app', [])
8787
return {
8888
compile: function($element, $attrs) {
8989
var expr = $parse($attrs.attr4);
90-
return function($scope) { $scope.$watch(expr, angular.noop); }
90+
return ($scope) => $scope.$watch(expr, angular.noop);
9191
}
9292
};
9393
}

modules/benchmarks_external/src/largetable/largetable_benchmark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ angular.module('app', [])
116116
}
117117
}
118118
};
119-
})
119+
});

modules/benchmarks_external/src/static_tree/tree_benchmark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function main() {
1919
function addTreeDirective(module, level: number) {
2020
var template;
2121
if (level <= 0) {
22-
template = `<span> {{data.value}}</span>`
22+
template = `<span> {{data.value}}</span>`;
2323
} else {
2424
template = `<span> {{data.value}} <tree${level-1} data='data.right'></tree${level-1}><tree${level-1} data='data.left'></tree${level-1}></span>`;
2525
}

modules/benchmarks_external/src/tree/react/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ var TreeComponent = React.createClass({
1919
var left = null;
2020
if (treeNode.left) {
2121
left = React.createElement(
22-
"span", {}, [React.createElement(TreeComponent, {treeNode: treeNode.left}, "")])
22+
"span", {}, [React.createElement(TreeComponent, {treeNode: treeNode.left}, "")]);
2323
}
2424

2525
var right = null;
2626
if (treeNode.right) {
2727
right = React.createElement(
28-
"span", {}, [React.createElement(TreeComponent, {treeNode: treeNode.right}, "")])
28+
"span", {}, [React.createElement(TreeComponent, {treeNode: treeNode.right}, "")]);
2929
}
3030

3131
var span = React.createElement("span", {}, [" " + treeNode.value, left, right]);

modules/benchmarks_external/src/tree/tree_benchmark.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ angular.module('app', [])
5757
function(clone) { $element.append(clone); });
5858
}
5959
});
60-
}
60+
};
6161

6262
}
63-
}
63+
};
6464
}
6565
])
6666
.config([

modules/playground/src/async/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class AsyncApplication {
7373

7474
periodicIncrement(): void {
7575
this.cancelPeriodicIncrement();
76-
this.intervalId = setInterval(() => { this.val4++; }, 2000)
76+
this.intervalId = setInterval(() => this.val4++, 2000);
7777
};
7878

7979
cancelDelayedIncrement(): void {

modules/playground/src/routing/app/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2121,4 +2121,4 @@ export var data = [
21212121
'subject': 'Fwd: wedding photos',
21222122
'draft': true
21232123
}
2124-
]
2124+
];

tools/@angular/tsc-wrapped/src/collector.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class MetadataCollector {
240240
moduleExport.export = exportDeclaration.exportClause.elements.map(
241241
element => element.propertyName ?
242242
{name: element.propertyName.text, as: element.name.text} :
243-
element.name.text)
243+
element.name.text);
244244
}
245245
if (!exports) exports = [];
246246
exports.push(moduleExport);
@@ -300,7 +300,7 @@ export class MetadataCollector {
300300
__symbolic: 'select',
301301
expression: recordEntry({__symbolic: 'reference', name: enumName}, node), name
302302
}
303-
}
303+
};
304304
} else {
305305
nextDefaultValue =
306306
recordEntry(errorSym('Unsuppported enum member name', member.name), node);
@@ -517,7 +517,7 @@ function validateMetadata(
517517
const entry = metadata[name];
518518
try {
519519
if (isClassMetadata(entry)) {
520-
validateClass(entry)
520+
validateClass(entry);
521521
}
522522
} catch (e) {
523523
const node = nodeMap.get(entry);

tools/@angular/tsc-wrapped/src/evaluator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export interface ImportMetadata {
6565

6666
function getSourceFileOfNode(node: ts.Node): ts.SourceFile {
6767
while (node && node.kind != ts.SyntaxKind.SourceFile) {
68-
node = node.parent
68+
node = node.parent;
6969
}
7070
return <ts.SourceFile>node;
7171
}
@@ -383,7 +383,7 @@ export class Evaluator {
383383
module: left.module,
384384
name: qualifiedName.right.text
385385
},
386-
node)
386+
node);
387387
}
388388
// Record a type reference to a declared type as a select.
389389
return {__symbolic: 'select', expression: left, member: qualifiedName.right.text};

0 commit comments

Comments
 (0)