Skip to content

Commit fab1b0f

Browse files
committed
Updated to use System.Collections.Generic.List
1 parent 0fa2967 commit fab1b0f

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

docs/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.0.1]
8+
## [1.0.3]
99

1010
- Module Changes
1111
- Updated links in `psd1` manifest
12+
- Updated to use `System.Collections.Generic.List` instead of `System.Collections.ArrayList`
1213
- Misc
1314
- Added new pwshPlaces logo and icons
1415
- Updated CONTRIBUTING guidelines

docs/pwshPlaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Module Name: pwshPlaces
33
Module Guid: 9a9914bd-d115-4f42-bb5d-19c5e5561a3f
44
Download Help Link: NA
5-
Help Version: 1.0.1
5+
Help Version: 1.0.3
66
Locale: en-US
77
---
88

src/pwshPlaces/Public/Search-GMapNearbyPlace.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function Search-GMapNearbyPlace {
277277
$uri += $fAPIKey
278278
Write-Debug -Message ('Final URI: {0}' -f $uri)
279279

280-
$allResults = [System.Collections.ArrayList]::new()
280+
$allResults = New-Object System.Collections.Generic.List[object]
281281

282282
$invokeRestMethodSplat = @{
283283
Uri = $uri

src/pwshPlaces/Public/Search-GMapText.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function Search-GMapText {
304304
$uri += $fAPIKey
305305
Write-Debug -Message ('Final URI: {0}' -f $uri)
306306

307-
$allResults = [System.Collections.ArrayList]::new()
307+
$allResults = New-Object System.Collections.Generic.List[object]
308308

309309
$invokeRestMethodSplat = @{
310310
Uri = $uri

src/pwshPlaces/pwshPlaces.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'pwshPlaces.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.0.1'
15+
ModuleVersion = '1.0.3'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

0 commit comments

Comments
 (0)