From 7386a69d79ac2822b930ada1e7fdb4d7bfcfc99e Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Fri, 2 Jul 2021 01:07:05 +0800 Subject: [PATCH] Prefer final variable --- lib/widget/album_dir_picker.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/album_dir_picker.dart b/lib/widget/album_dir_picker.dart index 458e829c..6624b36f 100644 --- a/lib/widget/album_dir_picker.dart +++ b/lib/widget/album_dir_picker.dart @@ -50,7 +50,7 @@ class _AlbumDirPickerState extends State @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 {