Skip to content

Commit e0f918a

Browse files
committed
Use dirExists instead of Directory.existsSync for consistency
1 parent 9024daa commit e0f918a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/src/system_cache.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SystemCache {
3838
// If a cache dir already exists in %APPDATA%, use it, else default to %LOCALAPPDATA%
3939
var appData = Platform.environment['APPDATA'];
4040
var appDataCacheDir = p.join(appData, 'Pub', 'Cache');
41-
if (Directory(appDataCacheDir).existsSync()) {
41+
if (dirExists(appDataCacheDir)) {
4242
return appDataCacheDir;
4343
}
4444
var localAppData = Platform.environment['LOCALAPPDATA'];

0 commit comments

Comments
 (0)