Commit d0aede2
committed
Make LoadingItem assertion an optional type
Because the placeholder can be null (e.g. when scrolling the post list
very quickly), the assertion will crash unless the asserted type is
optional. This crash will not happen in production, since we already
guard with a `?.let`. This fix prevents the crash in development.1 parent 09a3984 commit d0aede2
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments