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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(power_sources != NULL) {
|
|
||||||
CFArrayRef list = IOPSCopyPowerSourcesList(power_sources);
|
CFArrayRef list = IOPSCopyPowerSourcesList(power_sources);
|
||||||
CFDictionaryRef battery = NULL;
|
CFDictionaryRef battery = NULL;
|
||||||
int len;
|
int len;
|
||||||
|
@ -72,4 +71,3 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||||
CFRelease(list);
|
CFRelease(list);
|
||||||
CFRelease(power_sources);
|
CFRelease(power_sources);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue