Skip to content

Commit

Permalink
chore: Fixed spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri authored and MartinZikmund committed Mar 18, 2021
1 parent eca20cd commit a8dfcae
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UWP/ApplicationModel/Contacts/ContactPicker.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private async Task<Contact[]> PickContactsAsync(bool multiple, CancellationToken

using var picker = new CNContactPickerViewController
{

Delegate = multiple ?
(ICNContactPickerDelegate)new MultipleContactPickerDelegate(completionSource) :
(ICNContactPickerDelegate)new SingleContactPickerDelegate(completionSource),
Expand Down Expand Up @@ -67,7 +67,7 @@ private static Contact CNContactToContact(CNContact cnContact)
if (string.IsNullOrWhiteSpace(contact.DisplayName) && !string.IsNullOrWhiteSpace(cnContact.OrganizationName))
{
contact.DisplayNameOverride = cnContact.OrganizationName;
}
}

foreach (var phoneNumber in cnContact.PhoneNumbers)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Uno.UWP/Storage/Internal/NSUrlExtensions.iOSmacOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace Uno.Storage.Internal
{
internal static class NSUrlExtensions
{
{
public static IDisposable BeginSecurityScopedAccess(this NSUrl nsUrl) =>
SecurityScopeManager.BeginScope(nsUrl);
}
}
}
2 changes: 1 addition & 1 deletion src/Uno.UWP/Storage/Pickers/FileSavePicker.macOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private string GetStartPath()
{
var specialFolder = SuggestedStartLocation switch
{
PickerLocationId.DocumentsLibrary => NSSearchPathDirectory.DocumentDirectory,
PickerLocationId.DocumentsLibrary => NSSearchPathDirectory.DocumentDirectory,
PickerLocationId.Desktop => NSSearchPathDirectory.DesktopDirectory,
PickerLocationId.MusicLibrary => NSSearchPathDirectory.MusicDirectory,
PickerLocationId.PicturesLibrary => NSSearchPathDirectory.PicturesDirectory,
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UWP/Storage/StorageFile.Local.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected override bool IsEqual(ImplementationBase impl)
{
var directoryPath = IOPath.GetDirectoryName(Path);
return directoryPath != null ? new StorageFolder(directoryPath) : null;
}
}

public override async Task<BasicProperties> GetBasicPropertiesAsync(CancellationToken ct)
=> BasicProperties.FromFilePath(Owner.Path);
Expand Down
4 changes: 2 additions & 2 deletions src/Uno.UWP/Storage/StorageFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace Windows.Storage
{
public partial class StorageFolder : IStorageFolder, IStorageItem, IStorageItem2
{
{
private StorageFolder(ImplementationBase implementation)
{
Implementation = implementation;
Expand Down Expand Up @@ -92,7 +92,7 @@ public IAsyncOperation<IReadOnlyList<IStorageItem>> GetItemsAsync() =>

public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync() =>
AsyncOperation.FromTask(ct => Implementation.GetFilesAsync(ct));

public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync() =>
AsyncOperation.FromTask(ct => Implementation.GetFoldersAsync(ct));

Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UWP/Storage/StorageFolder.native.wasm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public NativeStorageFolder(NativeStorageItemInfo info, StorageFolder? parent)
}

public override StorageProvider Provider => StorageProviders.NativeWasm;

public static async Task<StorageFolder?> GetPrivateRootAsync()
{
var itemInfoJson = await WebAssemblyRuntime.InvokeAsync($"{JsType}.getPrivateRootAsync()");
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UWP/Storage/Streams/FileRandomAccessStream.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace Windows.Storage.Streams
{
public partial class FileRandomAccessStream
{
{
internal static FileRandomAccessStream CreateSecurityScoped(NSUrl url, FileAccess access, FileShare share) =>
new FileRandomAccessStream(SecurityScoped.Create(url, access, share));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal SecurityScopeStreamWrapper(NSUrl url, Func<Stream> streamBuilder)
{
_url = url;
_securityScope = _url.BeginSecurityScopedAccess();
_innerStream = streamBuilder();
_innerStream = streamBuilder();
}

public override bool CanRead => _innerStream.CanRead;
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UWP/WinRTFeatureConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static class Midi
public static bool RequestSystemExclusiveAccess { get; set; }
#endif
}

public static class NetworkInformation
{
public static string ReachabilityHostname { get; set; } = "www.example.com";
Expand Down

0 comments on commit a8dfcae

Please sign in to comment.