mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 17:33:33 +00:00
Update arraymember.ps1
remove explicit type casting where implicit coercion already occurs
This commit is contained in:
@@ -25,7 +25,7 @@ class BoolArrayMember : ArrayMember {
|
||||
) : base ($index, $prefix, $parent) {}
|
||||
|
||||
[bool] Get () {
|
||||
return [bool]$this.Getter('')
|
||||
return $this.Getter('')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ class IntArrayMember : ArrayMember {
|
||||
) : base ($index, $prefix, $parent) {}
|
||||
|
||||
[int] Get () {
|
||||
return [int]$this.Getter('')
|
||||
return $this.Getter('')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,6 @@ class StringArrayMember : ArrayMember {
|
||||
) : base ($index, $prefix, $parent) {}
|
||||
|
||||
[string] Get () {
|
||||
return [string]$this.Getter_String('')
|
||||
return $this.Getter_String('')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user