qol: simplify default
This commit is contained in:
1 parent
9656c15c4b
commit
58546ed16d
13 files changed
+22
-26
No files matched your search
@@ -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