From f0178e83d4cb835573e1e53a8dd757ad3f85c3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Roussin-B=C3=A9langer?= Date: Thu, 3 Nov 2022 22:19:14 -0400 Subject: [PATCH] syncqt: remove unnecessary check for not empty string The previous if checks it. Change-Id: I03321da3d6886e1788ad48433d451a5cc643f8dd Reviewed-by: Marc Mutz Reviewed-by: Alexey Edelev --- src/tools/syncqt/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp index 11c3e54a6e..bbfae4bc58 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -303,7 +303,7 @@ private: if (arg.empty()) continue; - if (arg.size() > 0 && arg[0] == '-') { + if (arg[0] == '-') { currentValue = nullptr; currentListValue = nullptr; {