mirror of
https://github.com/flutter/flutter
synced 2024-11-05 18:37:51 +00:00
Fix typo (#29625)
This commit is contained in:
parent
b123846cb0
commit
c33d263830
1 changed files with 2 additions and 2 deletions
|
@ -370,14 +370,14 @@ class AndroidSdk {
|
|||
}
|
||||
|
||||
static bool validSdkDirectory(String dir) {
|
||||
return sdkDirectoryHasLicneses(dir) || sdkDirectoryHasPlatformTools(dir);
|
||||
return sdkDirectoryHasLicenses(dir) || sdkDirectoryHasPlatformTools(dir);
|
||||
}
|
||||
|
||||
static bool sdkDirectoryHasPlatformTools(String dir) {
|
||||
return fs.isDirectorySync(fs.path.join(dir, 'platform-tools'));
|
||||
}
|
||||
|
||||
static bool sdkDirectoryHasLicneses(String dir) {
|
||||
static bool sdkDirectoryHasLicenses(String dir) {
|
||||
return fs.isDirectorySync(fs.path.join(dir, 'licenses'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue