qol: inline variable declaration
This commit is contained in:
@@ -74,10 +74,9 @@ namespace Disco.Services.Devices.ManagedGroups
|
||||
|
||||
public static bool TryGetManagedGroup(DeviceBatch DeviceBatch, out DeviceBatchDevicesManagedGroup ManagedGroup)
|
||||
{
|
||||
ADManagedGroup managedGroup;
|
||||
string key = GetKey(DeviceBatch);
|
||||
|
||||
if (ActiveDirectory.Context.ManagedGroups.TryGetValue(key, out managedGroup))
|
||||
if (ActiveDirectory.Context.ManagedGroups.TryGetValue(key, out var managedGroup))
|
||||
{
|
||||
ManagedGroup = (DeviceBatchDevicesManagedGroup)managedGroup;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user