From dde7dd9f732b3ae6e69efc902269b78b6ba3c3fa Mon Sep 17 00:00:00 2001
From: allavenavr <allavenaromain@gmail.com>
Date: Thu, 20 Mar 2025 17:51:36 +0100
Subject: [PATCH] nom modif

---
 SingletonConnection.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/SingletonConnection.cs b/SingletonConnection.cs
index e69aa38..8776e37 100644
--- a/SingletonConnection.cs
+++ b/SingletonConnection.cs
@@ -6,7 +6,7 @@ namespace HegreHotel
 {
     public class SingletonConnection : SQLiteAsyncConnection
     {
-        private static SingletonConnection instance;
+        private static SingletonConnection? _instance;
 
         private SingletonConnection(string dbPath) : base(dbPath)
         {
@@ -14,11 +14,11 @@ namespace HegreHotel
 
         public static SingletonConnection GetInstance(string dbPath)
         {
-            if (instance == null)
+            if (_instance == null)
             {
-                instance = new SingletonConnection(dbPath);
+                _instance = new SingletonConnection(dbPath);
             }
-            return instance;
+            return _instance;
         }
     }
 }
\ No newline at end of file