Remove unneeded nullish coalescing

This commit is contained in:
shilangyu 2021-02-18 17:13:20 +01:00
parent af09e56a1f
commit 46059b5b83
1 changed files with 1 additions and 4 deletions

View File

@ -506,10 +506,7 @@ class _ModlogEntry {
),
),
action,
if (reason == null)
const Center(child: Text('-'))
else
Text(reason ?? '-'),
if (reason == null) const Center(child: Text('-')) else Text(reason),
]
.map(
(widget) => Padding(