Battery: minor code style change

This commit is contained in:
o9000 2015-09-12 12:23:50 +02:00
parent 85b3b8a749
commit 005e5a49c0

View file

@ -348,7 +348,7 @@ static gboolean update_linux_battery(struct psy_battery *bat) {
/* some hardware does not support reading current power consumption */
g_error_free(error);
bat->power_now = estimate_power_usage(bat, old_energy_now, old_timestamp);
} else if(error) {
} else if (error) {
g_error_free(error);
return FALSE;
} else {