1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Reordered identity attributes in caps cache for readability

This commit is contained in:
James Booth 2014-09-23 00:22:59 +01:00
parent e88cc0079a
commit ab9c3ac330

View File

@ -83,15 +83,15 @@ caps_add(const char * const ver, Capabilities *caps)
{
gboolean cached = g_key_file_has_group(cache, ver);
if (!cached) {
if (caps->name) {
g_key_file_set_string(cache, ver, "name", caps->name);
}
if (caps->category) {
g_key_file_set_string(cache, ver, "category", caps->category);
}
if (caps->type) {
g_key_file_set_string(cache, ver, "type", caps->type);
}
if (caps->name) {
g_key_file_set_string(cache, ver, "name", caps->name);
}
if (caps->software) {
g_key_file_set_string(cache, ver, "software", caps->software);
}