[sysprof] battery: style cleanup



commit 3299c0d41ccb016f868bc5aabbc9a5fd26abbbaa
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 13 19:37:33 2019 -0700

    battery: style cleanup

 src/libsysprof/sysprof-battery-source.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/libsysprof/sysprof-battery-source.c b/src/libsysprof/sysprof-battery-source.c
index 0b12a6e..92db482 100644
--- a/src/libsysprof/sysprof-battery-source.c
+++ b/src/libsysprof/sysprof-battery-source.c
@@ -237,10 +237,9 @@ sysprof_battery_source_start (SysprofSource *source)
 {
   SysprofBatterySource *self = (SysprofBatterySource *)source;
 
-  self->poll_source = g_timeout_add_seconds (1, sysprof_battery_source_poll_cb, self);
-
   g_assert (SYSPROF_IS_BATTERY_SOURCE (self));
 
+  self->poll_source = g_timeout_add_seconds (1, sysprof_battery_source_poll_cb, self);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]