Prefer final variable

This commit is contained in:
Ming Ming 2021-07-02 01:07:05 +08:00
parent 5257766151
commit 7386a69d79

View file

@ -50,7 +50,7 @@ class _AlbumDirPickerState extends State<AlbumDirPicker>
@override
getPickerRoot() {
var root = api_util.getWebdavRootUrlRelative(widget.account);
final root = api_util.getWebdavRootUrlRelative(widget.account);
if (widget.account.roots.length == 1) {
return "$root/${widget.account.roots.first}";
} else {