From 89ea934867e8a6608255c1686f77fe9974db5480 Mon Sep 17 00:00:00 2001 From: Donovan Brown Date: Fri, 1 May 2020 10:21:26 -0500 Subject: [PATCH] Addressing issue #296 --- Source/Private/callMembershipAPI.ps1 | 2 -- Source/Private/common.ps1 | 2 -- Source/Public/Test-VSTeamMembership.ps1 | 2 -- 3 files changed, 6 deletions(-) diff --git a/Source/Private/callMembershipAPI.ps1 b/Source/Private/callMembershipAPI.ps1 index a17c2845e..6e1f65f5e 100644 --- a/Source/Private/callMembershipAPI.ps1 +++ b/Source/Private/callMembershipAPI.ps1 @@ -9,8 +9,6 @@ function _callMembershipAPI { [ValidateSet('', 'Up', 'Down')] [string] $Direction ) - Set-StrictMode -Version Latest - # This will throw if this account does not support the graph API _supportsGraph diff --git a/Source/Private/common.ps1 b/Source/Private/common.ps1 index 1e8434ec3..c8d272059 100644 --- a/Source/Private/common.ps1 +++ b/Source/Private/common.ps1 @@ -1,5 +1,3 @@ -Set-StrictMode -Version Latest - $here = Split-Path -Parent $MyInvocation.MyCommand.Path [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseDeclaredVarsMoreThanAssignments", "It is used in other files")] diff --git a/Source/Public/Test-VSTeamMembership.ps1 b/Source/Public/Test-VSTeamMembership.ps1 index 429bc0012..d674e293f 100644 --- a/Source/Public/Test-VSTeamMembership.ps1 +++ b/Source/Public/Test-VSTeamMembership.ps1 @@ -8,8 +8,6 @@ function Test-VSTeamMembership { ) process { - Set-StrictMode -Version Latest - $PrevWarningPreference = $WarningPreference try { $WarningPreference = "SilentlyContinue" # avoid 404 warning, since that indicates it doesn't exist