add new lints of linter-0.1.44 and enable unnecessary_parenthesis (#15585)

This commit is contained in:
Alexandre Ardhuin
2018-03-21 07:10:14 +01:00
committed by GitHub
parent d518bd2dc8
commit 217b2bdaa1
6 changed files with 12 additions and 8 deletions

View File

@@ -155,7 +155,7 @@ class VsCode {
static List<VsCode> _findInstalled(
List<_VsCodeInstallLocation> allLocations) {
final Iterable<_VsCodeInstallLocation> searchLocations =
final Iterable<_VsCodeInstallLocation> searchLocations =
_includeInsiders
? allLocations
: allLocations.where((_VsCodeInstallLocation p) => p.isInsiders != true);
@@ -175,7 +175,7 @@ class VsCode {
@override
String toString() =>
'VS Code ($version)${(_extensionVersion != Version.unknown ? ', Dart Code ($_extensionVersion)' : '')}';
'VS Code ($version)${_extensionVersion != Version.unknown ? ', Dart Code ($_extensionVersion)' : ''}';
static String _getVersionFromPackageJson(String packageJsonPath) {
if (!fs.isFileSync(packageJsonPath))