1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:28:11 +00:00

Shell: Remove bogus assertion

This commit is contained in:
Andreas Kling 2020-03-01 17:08:49 +01:00
parent 2695773dd2
commit 24a5a6cd2c

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;