Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Commit d417d59

Browse files
rashil2000JanDeDobbeleer
authored andcommitted
Remove unnecessary function call
1 parent 64d7448 commit d417d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Themes/Powerlevel9k.psm1

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ function Write-Theme {
5454
$rightElements.Add([System.Tuple]::Create(" $adminsymbol", $sl.Colors.AdminIconForegroundColor))
5555
}
5656

57-
if (Get-BatteryInfo) {
58-
$battery = Get-BatteryInfo
57+
$battery = Get-BatteryInfo
58+
if ($battery) {
5959
$rightElements.Add([System.Tuple]::Create(" $battery ", $sl.Colors.PromptForegroundColor))
6060
$rightElements.Add([System.Tuple]::Create($sl.PromptSymbols.SegmentSubBackwardSymbol, $sl.Colors.PromptForegroundColor))
6161
}

0 commit comments

Comments
 (0)