opt.: replace first with firstOrNull

This commit is contained in:
lollipopkit
2024-03-06 15:33:00 +08:00
parent fc00b4b961
commit 602ef60bf0
7 changed files with 11 additions and 9 deletions

View File

@@ -50,7 +50,7 @@ class Temperatures {
return _map[key];
}
}
return _map.values.first;
return _map.values.firstOrNull;
}
}