Skip to content

Commit

Permalink
edit code layout to remove backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl Newsholme committed Jun 17, 2024
1 parent a2a25e1 commit 36b090b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions functions/New-PasswordStateDocument.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
process {
try {
if ($PSCmdlet.ShouldProcess($path, "upload $DocumentName on $resourcetype with id $ID")) {
$output += New-PasswordStateResource `
-uri "/api/document/$($resourcetype)/$($ID)?DocumentName=$($documentname)&DocumentDescription=$($documentdescription)" `
-extraparams @{"InFile" = "$Path"} `
-contenttype 'multipart/form-data' `
-ErrorAction stop
$splatparams = @{
"uri" = "/api/document/$($resourcetype)/$($ID)?DocumentName=$($documentname)&DocumentDescription=$($documentdescription)"
"extraparams" = @{"InFile" = "$Path"}
"contentype" = 'multipart/form-data'
"ErrorAction" = "stop"
}
$output += New-PasswordStateResource @splatparams
}
}
Catch {
Expand Down

0 comments on commit 36b090b

Please sign in to comment.