Skip to content

Commit aaa96ee

Browse files
committed
simplify fileTypes expression
1 parent e1db4bb commit aaa96ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ConvertTo-PList.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ foreach ($file in $Path) {
145145
# write the PList document from a custom made object, supplying some data missing from the JSON file, ignoring some JSON objects
146146
# and reordering the items that remain.
147147
ConvertTo-Plist ([ordered]@{
148-
fileTypes = ([string[]]$('ps1', 'psm1', 'psd1'))
148+
fileTypes = @('ps1', 'psm1', 'psd1')
149149
$grammer_json.psobject.Properties['name'].Name = $grammer_json.psobject.Properties['name'].Value
150150
$grammer_json.psobject.Properties['patterns'].Name = $grammer_json.psobject.Properties['patterns'].Value
151151
$grammer_json.psobject.Properties['repository'].Name = $grammer_json.psobject.Properties['repository'].Value

0 commit comments

Comments
 (0)