Skip to content

Commit 847d5bd

Browse files
Fix for loop condition
1 parent eecd5b8 commit 847d5bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/listFeatures.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
fprintf('\n');
6767
else
6868
reply = '';
69-
while isempty(reply) || (~strcmpi(reply, 'y') && ~strcmpi(reply, 'yes')) || (~strcmpi(reply, 'n') && ~strcmpi(reply, 'no'))
69+
while isempty(reply)
7070

7171
reply = input(' -> You do not have any features (branches). Do you want to start a new feature (branch)? Y/N [Y]: ', 's');
7272

@@ -78,6 +78,8 @@
7878
elseif strcmpi(reply, 'n') || strcmpi(reply, 'no')
7979
fprintf(' -> Please start again. Goodbye.\n')
8080
exitFlag = true;
81+
else
82+
reply = '';
8183
end
8284
end
8385
end

0 commit comments

Comments
 (0)