Commit b0c0352
tools: dedupe property access in doc/type-parser
There is no need to get this property twice in this rather hot spot:
if there is no such key, the `typeUrl` will be `undefined`,
which suffices for the boolean check in the next line.
For consistency, `undefined` can also be made the default value.
PR-URL: #20387
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent fcc5492 commit b0c0352Copy full SHA for b0c0352
File tree
Expand file treeCollapse file tree
1 file changed
+2
-2
lines changedOpen diff view settings
Filter options
- tools/doc
Expand file treeCollapse file tree
1 file changed
+2
-2
lines changedOpen diff view settings
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
130 | 130 | |
131 | 131 | |
132 | 132 | |
133 | | - |
| 133 | + |
134 | 134 | |
135 | 135 | |
136 | 136 | |
| ||
143 | 143 | |
144 | 144 | |
145 | 145 | |
146 | | - |
| 146 | + |
147 | 147 | |
148 | 148 | |
149 | 149 | |
|
0 commit comments