Browse Source

Address SonarLint findings in Base64 CLI application

Patrick-Christopher Mattulat 1 year ago
parent
commit
12dcd3848f
1 changed files with 2 additions and 4 deletions
  1. 2 4
      source/ls-std/encoding/cli/cli-base64-main.cpp

+ 2 - 4
source/ls-std/encoding/cli/cli-base64-main.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2022-07-03
- * Changed:         2023-02-23
+ * Changed:         2023-05-18
  *
  * */
 
@@ -28,9 +28,7 @@ bool isValidCommand(const CliCommand &_command);
 
 int main(int argc, char *argv[])
 {
-  CliCommand command(argv, argv + argc);
-
-  if (isValidCommand(command))
+  if (CliCommand command(argv, argv + argc); isValidCommand(command))
   {
     if (command[1] == "--encode")
     {