Commit ddbfff9
authored
style: standardize property null checks to use ternary operators (#354)
# Description
## Summary
Standardizes property null check patterns across the codebase by
converting early return style to ternary operator style for consistency.
## Changes
- **RequestContext.configuration**: Converted from `if not self._params:
return None` pattern to ternary operator
- **RequestContext.metadata**: Converted from `if not self._params:
return {}` pattern to ternary operator1 parent d37ce7b commit ddbfff9
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
| 130 | + | |
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
| |||
139 | 137 | | |
140 | 138 | | |
141 | 139 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 140 | + | |
145 | 141 | | |
146 | 142 | | |
147 | 143 | | |
| |||
0 commit comments