From c0d0653730725ee059fc001f7f12299fdf25b03c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Tue, 2 Jan 2024 14:21:53 -0500
Subject: [PATCH] gittransport: cleanup

Change-Id: I5f2d557e9527a3ca01834fee072d257d51eae27f
---
 src/gittransport.cpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/gittransport.cpp b/src/gittransport.cpp
index 9deeed83ef..40075fc0ef 100644
--- a/src/gittransport.cpp
+++ b/src/gittransport.cpp
@@ -144,37 +144,37 @@ P2PSubTransportAction(git_smart_subtransport_stream** out,
 {
     auto* sub = reinterpret_cast<P2PSubTransport*>(transport);
     if (!sub || !sub->remote) {
-        JAMI_ERR("Invalid subtransport");
+        JAMI_ERROR("Invalid subtransport");
         return -1;
     }
 
     auto repo = git_remote_owner(sub->remote);
     if (!repo) {
-        JAMI_ERR("No repository linked to the transport");
+        JAMI_ERROR("No repository linked to the transport");
         return -1;
     }
 
     const auto* workdir = git_repository_workdir(repo);
     if (!workdir) {
-        JAMI_ERR("No working linked to the repository");
+        JAMI_ERROR("No working linked to the repository");
         return -1;
     }
     std::string_view path = workdir;
     auto delimConv = path.rfind("/conversations");
     if (delimConv == std::string::npos) {
-        JAMI_ERR("No conversation id found");
+        JAMI_ERROR("No conversation id found");
         return -1;
     }
     auto delimAccount = path.rfind('/', delimConv - 1);
     if (delimAccount == std::string::npos && delimConv - 1 - delimAccount == 16) {
-        JAMI_ERR("No account id found");
+        JAMI_ERROR("No account id found");
         return -1;
     }
     auto accountId = path.substr(delimAccount + 1, delimConv - 1 - delimAccount);
-    std::string_view gitUrl = url + std::string("git://").size();
+    std::string_view gitUrl = url + ("git://"sv).size();
     auto delim = gitUrl.find('/');
     if (delim == std::string::npos) {
-        JAMI_ERR("Incorrect url %s", std::string(gitUrl).c_str());
+        JAMI_ERROR("Incorrect url {:s}", gitUrl);
         return -1;
     }
     auto deviceId = gitUrl.substr(0, delim);
-- 
GitLab