Skip to content

Commit 5a647f0

Browse files
authored
Minor code formatting
I made some minor code formatting changes to fit with the code formatting in use throughout so far. I use the [https://github.com/PoshCode/PowerShellPracticeAndStyle/issues/81](OTSB with Stroustrup else).
1 parent fc64f43 commit 5a647f0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

PoSHue.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,16 +537,18 @@ Class HueLight : HueFactory {
537537

538538
$this.Hue = $Status.state.hue
539539
$this.Saturation = $Status.state.sat
540-
if(Get-Member -inputobject $Status.state -name "colormode" -Membertype Properties) {
540+
541+
if (Get-Member -InputObject $Status.state -Name "colormode" -MemberType Properties) {
541542
$this.ColourMode = $Status.state.colormode
542543

543544
# This is for compatibility reasons on Philips Ambient Lights
544545
if ($Status.state.colormode -eq "xy") {
545546
$this.XY.x = $Status.state.xy[0]
546547
$this.XY.y = $Status.state.xy[1]
547548
}
548-
} else {
549-
$this.ColourMode = 'none'
549+
}
550+
else {
551+
$this.ColourMode = 'none'
550552
}
551553

552554
If ($Status.state.ct) {

0 commit comments

Comments
 (0)