Skip to content

Commit 295e936

Browse files
author
AmiyahJo
committed
fix: alter this.top text
1 parent d6af86e commit 295e936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lesson_12/structs_ts/src/stack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class Stack {
2828
return null;
2929
}
3030

31-
return this.top?.val;
31+
return this.top!.val;
3232
}
3333

3434
isEmpty(): boolean {

0 commit comments

Comments
 (0)