Commit a338561
committed
refactor: drop the redundant contract block from checkRequired
checkNotNull already declares returns() implies (value != null) and
checkRequired returns a non-null T by signature, so the explicit contract only
added smart-casting of the argument variable after the call. Neither builder
call site relies on that (both consume the return value directly), so remove
the contract and its ExperimentalContracts opt-in and collapse to a single
expression.1 parent cbf920f commit a338561
1 file changed
Lines changed: 1 addition & 10 deletions
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | | - | |
42 | 38 | | |
43 | 39 | | |
44 | 40 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 41 | + | |
0 commit comments