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