Skip to content

Commit

Permalink
Added NRT for Key return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
datvm committed Apr 23, 2023
1 parent 7ad22e1 commit 96d51b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Blazored.LocalStorage/ISyncLocalStorageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public interface ISyncLocalStorageService
/// </summary>
/// <param name="index"></param>
/// <returns>The name of the key at the specified <paramref name="index"/></returns>
string Key(int index);
string? Key(int index);

/// <summary>
/// Checks if the <paramref name="key"/> exists in local storage, but does not check its value.
Expand Down
2 changes: 1 addition & 1 deletion src/Blazored.LocalStorage/LocalStorageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void Clear()
public int Length()
=> _storageProvider.Length();

public string Key(int index)
public string? Key(int index)
=> _storageProvider.Key(index);

public bool ContainKey(string key)
Expand Down

0 comments on commit 96d51b3

Please sign in to comment.