diff --git a/Tests/xdmfdiff/xdmfdiff.cpp b/Tests/xdmfdiff/xdmfdiff.cpp
index b7966fa3e3b8013f9a45d3aa225b8181539f30ee..8ec8e445dd87fd061ccd2f4a947ebcb9aa1905b4 100644
--- a/Tests/xdmfdiff/xdmfdiff.cpp
+++ b/Tests/xdmfdiff/xdmfdiff.cpp
@@ -252,7 +252,6 @@ bool compareValues(std::vector<double> const& points_a,
                       << "The distance is: " << distance << "\n";
             return false;
         }
-        return true;
     }
     return true;
 }