style: remove unnecessary @ prefix from bytes variable
This commit is contained in:
+3
-3
@@ -10,12 +10,12 @@ internal sealed class MachineIdKeyProvider(IMachineIdKeyGenerator generator) : I
|
|||||||
public byte[] GetKey()
|
public byte[] GetKey()
|
||||||
{
|
{
|
||||||
var machineId = _generator.GetId();
|
var machineId = _generator.GetId();
|
||||||
var @bytes = Encoding.UTF8.GetBytes(machineId);
|
var bytes = Encoding.UTF8.GetBytes(machineId);
|
||||||
#if NET5_0_OR_GREATER
|
#if NET5_0_OR_GREATER
|
||||||
return SHA256.HashData(@bytes);
|
return SHA256.HashData(bytes);
|
||||||
#else
|
#else
|
||||||
using var sha256 = SHA256.Create();
|
using var sha256 = SHA256.Create();
|
||||||
return sha256.ComputeHash(@bytes);
|
return sha256.ComputeHash(bytes);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user