Drop always true condition

This commit is contained in:
Christian Göttsche 2020-10-27 11:50:18 +01:00 committed by cgzones
parent ac2b07eddd
commit 059810ca65
1 changed files with 44 additions and 46 deletions

View File

@ -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;
@ -72,4 +71,3 @@ void Battery_getData(double* level, ACPresence* isOnAC) {
CFRelease(list);
CFRelease(power_sources);
}
}