Merge release-2018 into master
[alexxy/gromacs.git] / src / gromacs / commandline / cmdlineprogramcontext.cpp
index 70692bbcb043418b210db37399bd3d8903a9faaa..559a315b5e1410db87f34093dc268b737d0d6051 100644 (file)
@@ -187,11 +187,7 @@ bool isAcceptableLibraryPath(const std::string &path)
 bool isAcceptableLibraryPathPrefix(const std::string &path)
 {
     std::string testPath = Path::join(path, GMX_INSTALL_GMXDATADIR, "top");
-    if (isAcceptableLibraryPath(testPath))
-    {
-        return true;
-    }
-    return false;
+    return isAcceptableLibraryPath(testPath);
 }
 
 /*! \brief