Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 3751e57

Browse files
dramos07nshahan
authored andcommitted
This LSC removes redundant "const" dart keywords across google3.
Dart 2 made the "const" keyword optional inside a const context, and style requires that it be omitted. Redundant const usage will then be enforced by lint. PiperOrigin-RevId: 250698027
1 parent 6e633ce commit 3751e57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

angular_gallery_section/lib/components/gallery_component/documentation_component.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:angular/security.dart';
77
import 'package:angular_gallery_section/components/gallery_component/gallery_info.dart';
88

99
/// A list of all documentation directives.
10-
const documentationComponentDirectives = const [
10+
const documentationComponentDirectives = [
1111
DartDocComponent,
1212
MarkdownDocComponent,
1313
SassDocComponent,

angular_gallery_section/lib/components/gallery_component/gallery_component.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import 'package:angular_gallery_section/components/gallery_component/gallery_inf
2929
providers: [popupBindings],
3030
templateUrl: 'gallery_component.html',
3131
styleUrls: ['gallery_component.scss.css'],
32-
exports: const [DocType],
32+
exports: [DocType],
3333
)
3434
class GalleryComponent {
3535
/// The base model for the gallery that gathers all of the details needed by

0 commit comments

Comments
 (0)