Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Commit 64820f2

Browse files
Fixes #1129 - set empty required declarations on UWP (#1133)
* Fixes #1129 - set empty required declarations on UWP * Update Permissions.uwp.cs
1 parent 10b62af commit 64820f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Xamarin.Essentials/Permissions/Permissions.uwp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static bool IsCapabilityDeclared(string capabilityName)
2727

2828
public abstract partial class BasePlatformPermission : BasePermission
2929
{
30-
protected virtual Func<IEnumerable<string>> RequiredDeclarations { get; }
30+
protected virtual Func<IEnumerable<string>> RequiredDeclarations { get; } = () => Array.Empty<string>();
3131

3232
public override Task<PermissionStatus> CheckStatusAsync()
3333
{

0 commit comments

Comments
 (0)