Unnecessary new (#20138)
* enable lint unnecessary_new * fix tests * fix tests * fix tests
This commit is contained in:
committed by
GitHub
parent
d7a0dcaa4a
commit
d927c93310
@@ -24,7 +24,7 @@ const String kHelp = 'help';
|
||||
const String kUpstreamRemote = 'git@github.com:flutter/flutter.git';
|
||||
|
||||
void main(List<String> args) {
|
||||
final ArgParser argParser = new ArgParser(allowTrailingOptions: false);
|
||||
final ArgParser argParser = ArgParser(allowTrailingOptions: false);
|
||||
argParser.addOption(
|
||||
kIncrement,
|
||||
help: 'Specifies which part of the x.y.z version number to increment. Required.',
|
||||
@@ -168,7 +168,7 @@ String getFullTag() {
|
||||
}
|
||||
|
||||
Match parseFullTag(String version) {
|
||||
final RegExp versionPattern = new RegExp('^v([0-9]+)\.([0-9]+)\.([0-9]+)-([0-9]+)-g([a-f0-9]+)\$');
|
||||
final RegExp versionPattern = RegExp('^v([0-9]+)\.([0-9]+)\.([0-9]+)-([0-9]+)-g([a-f0-9]+)\$');
|
||||
return versionPattern.matchAsPrefix(version);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user