Skip to content

Commit 839ff7b

Browse files
committed
More CR feedback addressed
1 parent 7082412 commit 839ff7b

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/ServiceManagement/RemoteApp/Commands.RemoteApp/Common/IAdHelper.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,10 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
14-
using System;
14+
1515
using System.Collections.Generic;
1616
using System.DirectoryServices;
17-
using System.Linq;
1817
using System.Management.Automation;
19-
using System.Security;
20-
using System.Text;
21-
using System.Threading.Tasks;
22-
using Microsoft.WindowsAzure.Management.RemoteApp.Models;
2318

2419
namespace Microsoft.WindowsAzure.Management.RemoteApp.Cmdlets
2520
{

src/ServiceManagement/RemoteApp/Commands.RemoteApp/Common/RdsStaleAdObjectCmdlet.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.DirectoryServices;
4-
using System.Linq;
54
using System.Management.Automation;
6-
using System.Text;
7-
using System.Threading.Tasks;
85
using Microsoft.WindowsAzure.Management.RemoteApp.Models;
96

107
namespace Microsoft.WindowsAzure.Management.RemoteApp.Cmdlets
@@ -54,7 +51,7 @@ public IList<DirectoryEntry> GetVmAdStaleEntries(IList<RemoteAppVm> vmList, Acti
5451
{
5552
string name = ActiveDirectoryHelper.GetCN(adEntry);
5653

57-
if ((name.Length == AdHelper.VMNameLength) && ((maxName == null) || (String.Compare(name, maxName, StringComparison.OrdinalIgnoreCase) < 0)))
54+
if ((name.Length == AdHelper.VMNameLength) && (String.Compare(name, maxName, StringComparison.OrdinalIgnoreCase) < 0))
5855
{
5956
staleVmEntries.Add(adEntry);
6057
}

0 commit comments

Comments
 (0)