Commit 30311f2
Inline trivial multi-line list args — util
Summary:
Inline list arguments that were unnecessarily spread across 3 lines into a single line.
Before:
```
func(arg1, arg2, [
content
])
```
After (fits on one line):
```
func(arg1, arg2, [content])
```
After (too long for one line — one argument per line):
```
func(
arg1,
arg2,
[content]
)
```
A short list like `[Options]` or `[Reason, Code]` reads better inline than spanning 3 lines. Collapsing it reduces vertical noise and makes call signatures scannable at a glance. For longer calls, breaking to one-arg-per-line keeps each argument visually distinct instead of cramming everything before the list onto one line.
Reviewed By: thepulkitagarwal
Differential Revision: D97638719
fbshipit-source-id: 3368223c258c1ed83c7942c6d51a8b90b539bd081 parent 35be719 commit 30311f2
4 files changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 97 | + | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 229 | + | |
232 | 230 | | |
233 | 231 | | |
234 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 95 | + | |
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 107 | + | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
0 commit comments