Skip to content

Commit 01d3146

Browse files
authored
Fix lints of two varieties: unnecessary_null_in_if_null_operators, type_init_formals (#1971)
1 parent 94fd6fb commit 01d3146

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/src/dartdoc_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ abstract class _DartdocArgOption<T> implements DartdocOption<T> {
12371237
} else if (_isInt || _isDouble || _isString) {
12381238
argParser.addOption(argName,
12391239
abbr: abbr,
1240-
defaultsTo: defaultsTo?.toString() ?? null,
1240+
defaultsTo: defaultsTo?.toString(),
12411241
help: help,
12421242
hide: hide);
12431243
} else if (_isListString || _isMapString) {

lib/src/source_linker.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ class SourceLinker {
5959
/// Most users of this class should use the [SourceLinker.fromElement] factory
6060
/// instead. This constructor is public for testing.
6161
SourceLinker(
62-
{List<String> this.excludes,
63-
int this.lineNumber,
64-
String this.sourceFileName,
65-
String this.revision,
66-
String this.root,
67-
String this.uriTemplate}) {
62+
{this.excludes,
63+
this.lineNumber,
64+
this.sourceFileName,
65+
this.revision,
66+
this.root,
67+
this.uriTemplate}) {
6868
assert(excludes != null, 'linkToSource excludes can not be null');
6969
if (revision != null || root != null || uriTemplate != null) {
7070
if (root == null || uriTemplate == null) {

0 commit comments

Comments
 (0)