unnecessary this in field initializers (#22522)

This commit is contained in:
Alexandre Ardhuin
2018-10-02 17:14:59 +02:00
committed by GitHub
parent 4bd6ad7395
commit 5de96bb734
21 changed files with 38 additions and 38 deletions

View File

@@ -14,7 +14,7 @@ const bool _includeInsiders = false;
class VsCode {
VsCode._(this.directory, this.extensionDirectory, { Version version, this.edition })
: this.version = version ?? Version.unknown {
: version = version ?? Version.unknown {
if (!fs.isDirectorySync(directory)) {
_validationMessages.add('VS Code not found at $directory');
@@ -195,7 +195,7 @@ class VsCode {
class _VsCodeInstallLocation {
const _VsCodeInstallLocation(this.installPath, this.extensionsFolder, { this.edition, bool isInsiders })
: this.isInsiders = isInsiders ?? false;
: isInsiders = isInsiders ?? false;
final String installPath;
final String extensionsFolder;
final String edition;