mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-11 13:07:08 +03:00
Drop always true condition
This commit is contained in:
parent
ac2b07eddd
commit
059810ca65
@ -17,7 +17,6 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(power_sources != NULL) {
|
||||
CFArrayRef list = IOPSCopyPowerSourcesList(power_sources);
|
||||
CFDictionaryRef battery = NULL;
|
||||
int len;
|
||||
@ -71,5 +70,4 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||
|
||||
CFRelease(list);
|
||||
CFRelease(power_sources);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user