Skip to content

Commit

Permalink
IChangeToken Nullability Fix (#8937)
Browse files Browse the repository at this point in the history
  • Loading branch information
TanayParikh authored Jul 22, 2022
1 parent c93682a commit cfe5ba1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public IDirectoryContents GetDirectoryContents(string subpath)
public IFileInfo GetFileInfo(string subpath)
=> new AndroidMauiAssetFileInfo(_assets, Path.Combine(_contentRootDir, subpath));

public IChangeToken? Watch(string filter)
=> null;
public IChangeToken Watch(string filter)
=> NullChangeToken.Singleton;

private sealed class AndroidMauiAssetFileInfo : IFileInfo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public IDirectoryContents GetDirectoryContents(string subpath)
public IFileInfo GetFileInfo(string subpath)
=> new TizenMauiAssetFileInfo(Path.Combine(_resDir, subpath));

public IChangeToken? Watch(string filter)
=> null;
public IChangeToken Watch(string filter)
=> NullChangeToken.Singleton;

private sealed class TizenMauiAssetFileInfo : IFileInfo
{
Expand Down
4 changes: 2 additions & 2 deletions src/BlazorWebView/src/Maui/iOS/iOSMauiAssetFileProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public IDirectoryContents GetDirectoryContents(string subpath)
public IFileInfo GetFileInfo(string subpath)
=> new iOSMauiAssetFileInfo(Path.Combine(_bundleRootDir, subpath));

public IChangeToken? Watch(string filter)
=> null;
public IChangeToken Watch(string filter)
=> NullChangeToken.Singleton;

private sealed class iOSMauiAssetFileInfo : IFileInfo
{
Expand Down

0 comments on commit cfe5ba1

Please sign in to comment.