Skip to content

Commit

Permalink
Use ConfigScope.Has
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Dec 12, 2023
1 parent b5b30da commit 0ea4f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NAPS2.Lib/Remoting/Server/SharedDeviceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public ImmutableList<SharedDevice> SharedDevices
get => _scope.GetOr(c => c.SharedDevices, ImmutableList<SharedDevice>.Empty);
private set
{
if (!_scope.TryGet(c => c.InstanceId, out _))
if (!_scope.Has(c => c.InstanceId))
{
_scope.Set(c => c.InstanceId, _server.InstanceId);
}
Expand Down

0 comments on commit 0ea4f32

Please sign in to comment.