Shell: Remove bogus assertion

This commit is contained in:
Andreas Kling 2020-03-01 17:08:49 +01:00
parent 2695773dd2
commit 24a5a6cd2c
Notes: sideshowbarker 2024-07-19 08:57:03 +09:00

View file

@ -184,8 +184,6 @@ Vector<String> LineEditor::tab_complete_other_token(String& token)
String path;
Vector<String> suggestions;
ASSERT(token.length() != 0);
ssize_t last_slash = token.length() - 1;
while (last_slash >= 0 && token[last_slash] != '/')
--last_slash;