qol: simplify default
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Disco.Services.Expressions
|
||||
|
||||
public T EvaluateFirst<T>(object ExpressionContext, IDictionary Variables)
|
||||
{
|
||||
T result = default(T);
|
||||
T result = default;
|
||||
if (Count > 0)
|
||||
{
|
||||
try
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Disco.Services.Expressions.Extensions
|
||||
{
|
||||
var objectValue = GetActiveDirectoryObjectValue(Device, PropertyName, Index);
|
||||
if (objectValue == null)
|
||||
return default(int);
|
||||
return default;
|
||||
else
|
||||
{
|
||||
int intValue;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace Disco.Services.Expressions.Extensions
|
||||
{
|
||||
var objectValue = GetActiveDirectoryObjectValue(User, PropertyName, Index);
|
||||
if (objectValue == null)
|
||||
return default(int);
|
||||
return default;
|
||||
else
|
||||
{
|
||||
int intValue;
|
||||
|
||||
Reference in New Issue
Block a user