removed unreachable/duplicate code from encrypter

I have no clue why, but there was duplicate code for checking text
This commit is contained in:
Václav Šmejkal 2022-06-12 16:29:35 +02:00
parent f9bdbb1053
commit 78e93f6d19
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -23,12 +23,6 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags)
//CHECK FOR INVALID text
checkText(text, flags);
if (strcmp(text, "") == 0)
{
if (!flags.noOutput) fprintf(stderr, "No text to encrypt!\n");
return noOutput(INVALID_TEXT);
}
//VARIABLES
char *key = malloc(getKeyLength());
char *returningText;