Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e99c881f
Unverified
Commit
e99c881f
authored
Feb 14, 2019
by
KyleWong
Committed by
GitHub
Feb 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't cache result for homeDirPath. (#27873)
parent
da5c97c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
common.dart
packages/flutter_tools/lib/src/base/common.dart
+6
-8
No files found.
packages/flutter_tools/lib/src/base/common.dart
View file @
e99c881f
...
...
@@ -7,16 +7,14 @@ import 'platform.dart';
/// Return the absolute path of the user's home directory
String
get
homeDirPath
{
if
(
_homeDirPath
==
null
)
{
_homeDirPath
=
platform
.
isWindows
?
platform
.
environment
[
'USERPROFILE'
]
:
platform
.
environment
[
'HOME'
];
if
(
_homeDirPath
!=
null
)
_homeDirPath
=
fs
.
path
.
absolute
(
_homeDirPath
);
String
path
=
platform
.
isWindows
?
platform
.
environment
[
'USERPROFILE'
]
:
platform
.
environment
[
'HOME'
];
if
(
path
!=
null
)
{
path
=
fs
.
path
.
absolute
(
path
);
}
return
_homeDirP
ath
;
return
p
ath
;
}
String
_homeDirPath
;
/// Throw a specialized exception for expected situations
/// where the tool should exit with a clear message to the user
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment