[gnome-builder: 7/17] code review fixes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder: 7/17] code review fixes
- Date: Mon, 22 Jun 2020 19:23:11 +0000 (UTC)
commit 944e4ecc72f19eb3958d78fb36cf8c9d28302747
Author: Günther Wagner <info gunibert de>
Date: Mon May 18 21:59:41 2020 +0200
code review fixes
src/libide/lsp/ide-lsp-client.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/lsp/ide-lsp-client.c b/src/libide/lsp/ide-lsp-client.c
index 28385d92f..8f2b5a65c 100644
--- a/src/libide/lsp/ide-lsp-client.c
+++ b/src/libide/lsp/ide-lsp-client.c
@@ -744,7 +744,9 @@ ide_lsp_client_real_notification (IdeLspClient *self,
if (params != NULL)
{
if (g_str_equal (method, "textDocument/publishDiagnostics"))
- ide_lsp_client_text_document_publish_diagnostics (self, params);
+ {
+ ide_lsp_client_text_document_publish_diagnostics (self, params);
+ }
else if (g_str_equal (method, "$/progress"))
{
const gchar *token = NULL;
@@ -768,7 +770,7 @@ ide_lsp_client_real_notification (IdeLspClient *self,
context = ide_object_get_context (IDE_OBJECT (self));
notifications = ide_object_get_child_typed (IDE_OBJECT (context), IDE_TYPE_NOTIFICATIONS);
- if (g_str_equal (kind, "begin"))
+ if (ide_str_equal0 (kind, "begin"))
{
notification = ide_notification_new ();
ide_notification_set_id (notification, token);
@@ -785,7 +787,7 @@ ide_lsp_client_real_notification (IdeLspClient *self,
ide_notification_set_title (notification, message);
}
- if (g_str_equal (kind, "end") && notification != NULL)
+ if (ide_str_equal0 (kind, "end") && notification != NULL)
ide_notification_withdraw_in_seconds (notification, 3);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]