Commit 740a6c5
authored
Improve displayVersion and scmRevision description exposed by PluginContextSerializer (#7934)
Avoid using `String(describing:)` to create strings that can be utilized
by consumers.
### Motivation:
Version and revision strings with `Optional(...)` in them look
less-than-great
### Modifications:
Utilized `thing?.description ?? "nil"` rather than `String(describing:
thing)`.
### Result:
Improved the readability of `displayVersion` and `scmRevision` in a
`Package`'s `origin: PackagePlugin.PackageOrigin`.1 parent f55fbef commit 740a6c5
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
0 commit comments