diff options
| author | raphael0202 <raphael0202@yahoo.fr> | 2016-03-18 07:04:08 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2016-03-18 07:04:08 +0000 |
| commit | b288e8e5d98684ae81c109a4c4ffa1d25fc4d727 (patch) | |
| tree | 7e0ffe1378d934eeea9c4e8dc6df9a90c3c717dd /src/extension/implementation/script.cpp | |
| parent | [Bug #1545769] Adding MimeTypes in the desktop.in file. (diff) | |
| download | inkscape-b288e8e5d98684ae81c109a4c4ffa1d25fc4d727.tar.gz inkscape-b288e8e5d98684ae81c109a4c4ffa1d25fc4d727.zip | |
[Bug #1558177] Simplify if conditions in Script.cpp.
Fixed bugs:
- https://launchpad.net/bugs/1558177
(bzr r14715)
Diffstat (limited to 'src/extension/implementation/script.cpp')
| -rw-r--r-- | src/extension/implementation/script.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index f990598eb..2ec17f947 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -232,11 +232,7 @@ bool Script::check_existence(const std::string &command) //Don't search when it is an absolute path. */ if (Glib::path_is_absolute(command)) { - if (Glib::file_test(command, Glib::FILE_TEST_EXISTS)) { - return true; - } else { - return false; - } + return Glib::file_test(command, Glib::FILE_TEST_EXISTS); } // First search in the current directory |
