remove unnecessary boolean

This commit is contained in:
Shelley Vohr 2017-10-26 00:21:52 -04:00
parent 246c808222
commit c9dca6b8ad
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -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");