@eht16 commented on this pull request.


> @@ -377,7 +381,10 @@ static gchar *pastebin_get_language(const Pastebin 
> *pastebin,
     gchar *lang = g_key_file_get_string(pastebin->config, 
PASTEBIN_GROUP_LANGUAGES,
                                         geany_ft_name, NULL);
 
-    return lang ? lang : pastebin_get_default(pastebin, "language", "");
+    if (lang)

It seems cppcheck doesn't like the tertiary operator in this case.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1197#pullrequestreview-1178270613
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/pull/1197/review/1178270...@github.com>

Reply via email to