From c06136470d95f0fe7dc0918606a41160cd688053 Mon Sep 17 00:00:00 2001 From: fdai7207 Date: Mon, 6 Feb 2023 07:00:49 +0100 Subject: [PATCH] refactoring: improved code readability by removing redundant lines, renaming variables and adding comments for documentation. --- src/createEmployeeAccount.c | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/src/createEmployeeAccount.c b/src/createEmployeeAccount.c index 633561f..bb283e0 100644 --- a/src/createEmployeeAccount.c +++ b/src/createEmployeeAccount.c @@ -5,7 +5,7 @@ bool isValidEmployeeID(const char* employeeId, int maximumStringLength) { int employeeIdLength = strlen(employeeId); - + /* looping through the employeeId string until a space is found to return false or true otherwise*/ for(int i=0;i