mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
Avoid Task.Result usage (#930)
This commit is contained in:
@@ -100,10 +100,10 @@ namespace Bit.App.Pages
|
||||
{
|
||||
try
|
||||
{
|
||||
var data = _exportService.GetExport(FileFormatOptions[FileFormatSelectedIndex].Key);
|
||||
var data = await _exportService.GetExport(FileFormatOptions[FileFormatSelectedIndex].Key);
|
||||
var fileFormat = FileFormatOptions[FileFormatSelectedIndex].Key;
|
||||
_defaultFilename = _exportService.GetFileName(null, fileFormat);
|
||||
_exportResult = Encoding.ASCII.GetBytes(data.Result);
|
||||
_exportResult = Encoding.ASCII.GetBytes(data);
|
||||
|
||||
if (!_deviceActionService.SaveFile(_exportResult, null, _defaultFilename, null))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user