Skip to content

Commit

Permalink
🪲 [Fix]: Remove duplicate context existence check in Rename-Context
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Nov 24, 2024
1 parent a53640f commit 93507df
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/functions/public/Context/Rename-Context.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
if (-not $context) {
throw "Context with ID '$ID' not found."
}

$existingContext = Get-Context -ID $NewID
if ($existingContext) {
throw "Context with ID '$NewID' already exists."
}
}

process {
Expand Down

0 comments on commit 93507df

Please sign in to comment.