mirror of https://github.com/xzeldon/htop.git
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…
Reference in New Issue