diff --git a/Applications/FileIO/GocadIO/GocadAsciiReader.cpp b/Applications/FileIO/GocadIO/GocadAsciiReader.cpp
index cecdd4db3783e03fe41ae73374123c911bae2839..b0c4df71e7dee9b8de08eeaea8d759fa840df20b 100644
--- a/Applications/FileIO/GocadIO/GocadAsciiReader.cpp
+++ b/Applications/FileIO/GocadIO/GocadAsciiReader.cpp
@@ -116,23 +116,20 @@ DataType datasetFound(std::ifstream& in)
         {
             return DataType::VSET;
         }
-        else if (isKeyword(DataType::PLINE, line))
+        if (isKeyword(DataType::PLINE, line))
         {
             return DataType::PLINE;
         }
-        else if (isKeyword(DataType::TSURF, line))
+        if (isKeyword(DataType::TSURF, line))
         {
             return DataType::TSURF;
         }
-        else if (isKeyword(DataType::MODEL3D, line))
+        if (isKeyword(DataType::MODEL3D, line))
         {
             return DataType::MODEL3D;
         }
-        else
-        {
-            ERR("No known identifier found...");
-            return DataType::UNDEFINED;
-        }
+        ERR("No known identifier found...");
+        return DataType::UNDEFINED;
     }
     return DataType::UNDEFINED;
 }
@@ -274,7 +271,7 @@ bool parseNodes(std::ifstream& in,
             return true;
         }
 
-        else if (line.substr(0, 4) == "TRGL")
+        if (line.substr(0, 4) == "TRGL")
         {
             in.seekg(pos);
             return true;
diff --git a/ProcessLib/ThermoMechanics/ThermoMechanicsProcess.cpp b/ProcessLib/ThermoMechanics/ThermoMechanicsProcess.cpp
index 125fc0ca4a138548442d76959c9c0b061537cf53..04a30cf2377641a53f17657581e89410e9f793fb 100644
--- a/ProcessLib/ThermoMechanics/ThermoMechanicsProcess.cpp
+++ b/ProcessLib/ThermoMechanics/ThermoMechanicsProcess.cpp
@@ -148,11 +148,8 @@ void ThermoMechanicsProcess<DisplacementDim>::constructDofTable()
         constructMonolithicProcessDofTable();
         return;
     }
-    else
-    {
-        constructDofTableOfSpecifiedProsessStaggerdScheme(
-            _process_data.mechanics_process_id);
-    }
+    constructDofTableOfSpecifiedProsessStaggerdScheme(
+        _process_data.mechanics_process_id);
 
     // TODO move the two data members somewhere else.
     // for extrapolation of secondary variables of stress or strain