remove unnecessary local variable

This commit is contained in:
Hongtao Zhang 2022-11-24 14:19:16 -06:00
parent 303d3b9754
commit fb3a23fb2c
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -173,8 +173,7 @@ namespace Flow.Launcher.ViewModel
}
// We need to modify the property not field here to trigger the OnPropertyChanged event
var i = await ImageLoader.LoadAsync(imagePath, loadFullImage);
Image = i;
Image = await ImageLoader.LoadAsync(imagePath, loadFullImage).ConfigureAwait(false);
}
public Result Result { get; }