1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-23 11:43:49 +00:00

Changed all C# control flow block statements to include space between keyword and open paren (#800)

This commit is contained in:
Chad Scharf
2020-03-28 09:16:28 -04:00
committed by GitHub
parent 6c00ac43fc
commit 3c18fd7636
225 changed files with 2406 additions and 2406 deletions

View File

@@ -23,15 +23,15 @@ namespace Bit.App.Pages
_vm.Page = this;
_vm.Filter = filter;
_vm.AutofillUrl = _autofillUrl = autofillUrl;
if(folder)
if (folder)
{
_vm.PageTitle = AppResources.SearchFolder;
}
else if(collection)
else if (collection)
{
_vm.PageTitle = AppResources.SearchCollection;
}
else if(type)
else if (type)
{
_vm.PageTitle = AppResources.SearchType;
}
@@ -40,7 +40,7 @@ namespace Bit.App.Pages
_vm.PageTitle = AppResources.SearchVault;
}
if(Device.RuntimePlatform == Device.iOS)
if (Device.RuntimePlatform == Device.iOS)
{
ToolbarItems.Add(_closeItem);
_searchBar.Placeholder = AppResources.Search;
@@ -60,7 +60,7 @@ namespace Bit.App.Pages
{
base.OnAppearing();
await _vm.InitAsync();
if(!_hasFocused)
if (!_hasFocused)
{
_hasFocused = true;
RequestFocus(_searchBar);
@@ -71,7 +71,7 @@ namespace Bit.App.Pages
{
var oldLength = e.OldTextValue?.Length ?? 0;
var newLength = e.NewTextValue?.Length ?? 0;
if(oldLength < 2 && newLength < 2 && oldLength < newLength)
if (oldLength < 2 && newLength < 2 && oldLength < newLength)
{
return;
}
@@ -90,7 +90,7 @@ namespace Bit.App.Pages
protected override bool OnBackButtonPressed()
{
if(string.IsNullOrWhiteSpace(_autofillUrl))
if (string.IsNullOrWhiteSpace(_autofillUrl))
{
return false;
}
@@ -100,11 +100,11 @@ namespace Bit.App.Pages
private void GoBack()
{
if(!DoOnce())
if (!DoOnce())
{
return;
}
if(string.IsNullOrWhiteSpace(_autofillUrl))
if (string.IsNullOrWhiteSpace(_autofillUrl))
{
Navigation.PopModalAsync(false);
}
@@ -117,12 +117,12 @@ namespace Bit.App.Pages
private async void RowSelected(object sender, SelectedItemChangedEventArgs e)
{
((ListView)sender).SelectedItem = null;
if(!DoOnce())
if (!DoOnce())
{
return;
}
if(e.SelectedItem is CipherView cipher)
if (e.SelectedItem is CipherView cipher)
{
await _vm.SelectCipherAsync(cipher);
}