Skip to content

Commit

Permalink
fix: correct deprecation function name (#3406)
Browse files Browse the repository at this point in the history
  • Loading branch information
h404bi authored and r15ch13 committed Apr 28, 2019
1 parent 1268d74 commit 2db651c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/decompress.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -188,21 +188,21 @@ function Expand-ZipArchive {
}

function extract_7zip($path, $to, $removal) {
Show-DeprecationMessage $MyInvocation 'Expand-7ZipArchive'
Show-DeprecatedWarning $MyInvocation 'Expand-7ZipArchive'
Expand-7ZipArchive -Path $path -DestinationPath $to -Removal:$removal
}

function extract_msi($path, $to, $removal) {
Show-DeprecationMessage $MyInvocation 'Expand-MSIArchive'
Show-DeprecatedWarning $MyInvocation 'Expand-MSIArchive'
Expand-MSIArchive -Path $path -DestinationPath $to -Removal:$removal
}

function unpack_inno($path, $to, $removal) {
Show-DeprecationMessage $MyInvocation 'Expand-InnoArchive'
Show-DeprecatedWarning $MyInvocation 'Expand-InnoArchive'
Expand-InnoArchive -Path $path -DestinationPath $to -Removal:$removal
}

function extract_zip($path, $to, $removal) {
Show-DeprecationMessage $MyInvocation 'Expand-ZipArchive'
Show-DeprecatedWarning $MyInvocation 'Expand-ZipArchive'
Expand-ZipArchive -Path $path -DestinationPath $to -Removal:$removal
}

0 comments on commit 2db651c

Please sign in to comment.