Battery: minor code style change
This commit is contained in:
parent
85b3b8a749
commit
005e5a49c0
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue