Apply readability-simplify-boolean-expr

This commit is contained in:
Flössie
2016-10-12 20:01:30 +02:00
parent 19de9d1efa
commit aeaff29ac0
18 changed files with 53 additions and 85 deletions

View File

@@ -74,11 +74,7 @@ inline bool Options::checkProfilePath(Glib::ustring &path)
p = getGlobalProfilePath();
if (!p.empty() && Glib::file_test (path + paramFileExtension, Glib::FILE_TEST_EXISTS)) {
return true;
} else {
return false;
}
return !p.empty() && Glib::file_test (path + paramFileExtension, Glib::FILE_TEST_EXISTS);
}
bool Options::checkDirPath(Glib::ustring &path, Glib::ustring errString)
@@ -2324,7 +2320,7 @@ bool Options::load ()
void Options::save ()
{
if (options.multiUser == false) {
if (!options.multiUser) {
options.saveToFile (Glib::build_filename(argv0, "options"));
} else {
options.saveToFile (Glib::build_filename(rtdir, "options"));