Skip to content

Commit

Permalink
Merge pull request #938 from xPaw/nulls
Browse files Browse the repository at this point in the history
Fix nullable warnings
  • Loading branch information
yaakov-h authored Nov 16, 2020
2 parents 907e10e + fde9276 commit 9e47eab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SteamKit2/SteamKit2/Steam/Handlers/SteamApps/Callbacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public sealed class PICSProductInfo
/// <summary>
/// Gets the hash of the content
/// </summary>
public byte[] SHAHash { get; private set; }
public byte[]? SHAHash { get; private set; }
/// <summary>
/// Gets the KeyValue info
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions SteamKit2/SteamKit2/Util/HardwareUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class WindowsInfoProvider : DefaultInfoProvider
{
public override byte[] GetMachineGuid()
{
RegistryKey localKey = RegistryKey
var localKey = RegistryKey
.OpenBaseKey( Microsoft.Win32.RegistryHive.LocalMachine, RegistryView.Registry64 )
.OpenSubKey( @"SOFTWARE\Microsoft\Cryptography" );

Expand All @@ -94,7 +94,7 @@ public override byte[] GetMachineGuid()
return base.GetMachineGuid();
}

object guid = localKey.GetValue( "MachineGuid" );
var guid = localKey.GetValue( "MachineGuid" );

if ( guid == null )
{
Expand Down

0 comments on commit 9e47eab

Please sign in to comment.