Commit bde8a5f5 authored by Devon Carew's avatar Devon Carew Committed by GitHub

move away froma deprecated method (#11215)

parent 14648e9b
......@@ -45,10 +45,7 @@ class AnalysisDriver {
DriverOptions options;
String get sdkDir {
// ignore: deprecated_member_use
return options.dartSdkPath ?? fs.path.absolute(cli_util.getSdkDir().path);
}
String get sdkDir => options.dartSdkPath ?? cli_util.getSdkPath();
List<AnalysisErrorDescription> analyze(Iterable<File> files) {
final List<AnalysisErrorInfo> infos = _analyze(files);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment