Skip to content

Commit bbc8588

Browse files
removed unnecessary trim()
1 parent aedee7c commit bbc8588

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

frontend/src/ts/commandline/lists/navigation.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ const commands: Command[] = [
7070
),
7171
},
7272
exec: ({ input }): void => {
73-
const username = input?.trim();
74-
if (username === undefined || username === "") return;
75-
void navigate(`/profile/${username}`);
73+
if (input === undefined) return;
74+
void navigate(`/profile/${input}`);
7675
},
7776
}),
7877
{

0 commit comments

Comments
 (0)