pidgin/pidgin

Move g_return_if_fail to top of function and exit early.
release-2.x.y
2014-01-19, Mark Doliner
c3077dd1c5c7
Move g_return_if_fail to top of function and exit early.

This way the meat of the function isn't needlessly indented.
I think it's easier to read code structured this way.
/** @page dbus-server-signals DBus Server Signals
@signals
@signal dbus-method-called
@signal dbus-introspect
@endsignals
@see dbus-server.h
<hr>
@signaldef dbus-method-called
@signalproto
gboolean (*dbus_method_called)(DBusConnection *connection,
DBusMessage *message);
@endsignalproto
@signaldesc
Emitted when a dbus method is going to be called.
@param connection The DBus connection.
@param message The DBus message.
@return TRUE if signal handler handled the method. ???
@endsignaldef
@signaldef dbus-introspect
@signalproto
void (*dbus_introspect)(GList **bidings_list);
@endsignalproto
@signaldesc
???
@param bindings_list ???
@endsignaldef
*/
// vim: syntax=c.doxygen tw=75 et