mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Removed case-sesitivity check.
-ne comparison operator is case insensitive so there is no need for .ToLower()
This commit is contained in:
@@ -20,7 +20,7 @@ PARAM
|
||||
$xlsFile = Get-Item -Path $Path
|
||||
$xlsxPath = "{0}x" -f $xlsFile.FullName
|
||||
|
||||
if($xlsFile.Extension.ToLower() -ne ".xls"){
|
||||
if($xlsFile.Extension -ne ".xls"){
|
||||
throw "Expected .xls extension"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user