remove unnecessary boolean
This commit is contained in:
parent
246c808222
commit
c9dca6b8ad
1 changed files with 1 additions and 2 deletions
|
@ -167,8 +167,7 @@ BrowserMainParts::~BrowserMainParts() {
|
|||
#if defined(OS_WIN) || defined(OS_LINUX)
|
||||
void OverrideAppLogsPath() {
|
||||
base::FilePath path;
|
||||
bool success = PathService::Get(brightray::DIR_APP_DATA, &path);
|
||||
if (success) {
|
||||
if (PathService::Get(brightray::DIR_APP_DATA, &path)) {
|
||||
path = path.Append(base::UTF8ToWide(GetApplicationName()));
|
||||
#if defined(OS_WIN)
|
||||
path = path.Append(L"logs");
|
||||
|
|
Loading…
Add table
Reference in a new issue