<p><b>@codebrainz</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2256#discussion_r313952481">src/build.c</a>:</p>
<pre style='color:#555'>> @@ -2291,6 +2291,22 @@ static void build_load_menu_grp(GKeyFile *config, GeanyBuildCommand **dst, gint
 }
 
 
+/* set GeanyBuildCommand if it doesn't already exist and there is a command */
+static void assign_cmd(GeanyBuildCommand *type, guint id,
+               const gchar *label, gchar *value)
+{
+       if (!EMPTY(value) && ! type[GBO_TO_CMD(id)].exists)
+       {
+               type[GBO_TO_CMD(id)].exists = TRUE;
+               SETPTR(type[GBO_TO_CMD(id)].label, g_strdup(label));
+               SETPTR(type[GBO_TO_CMD(id)].command, value);
+               SETPTR(type[GBO_TO_CMD(id)].working_dir, NULL);
+               type[GBO_TO_CMD(id)].old = TRUE;
+       }
+       else
+               g_free(value);
</pre>
<p>IMO, the braceless dangling elses hurt readability and are <a href="https://dwheeler.com/essays/apple-goto-fail.html" rel="nofollow">a trap for future people editing the code</a>, but it seems perfectly reasonably to not change this one, since it's existing code and IIRC there are many of them elsewhere in the code, so it would probably make more sense to get them all at once in a separate PR that can get bikeshedded over.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2256?email_source=notifications&email_token=AAIOWJ4UV7Z66W73DY3TITLQEQTELA5CNFSM4ILBSKBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCBR7DLA#discussion_r313952481">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4IT7CQOFL3OLQTOJ3QEQTELANCNFSM4ILBSKBA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ5U6YYYJX5IJVL2NILQEQTELA5CNFSM4ILBSKBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCBR7DLA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2256?email_source=notifications\u0026email_token=AAIOWJ4UV7Z66W73DY3TITLQEQTELA5CNFSM4ILBSKBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCBR7DLA#discussion_r313952481",
"url": "https://github.com/geany/geany/pull/2256?email_source=notifications\u0026email_token=AAIOWJ4UV7Z66W73DY3TITLQEQTELA5CNFSM4ILBSKBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCBR7DLA#discussion_r313952481",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>