nom modif

This commit is contained in:
allavenavr 2025-03-20 17:51:36 +01:00
parent 76e4e68799
commit dde7dd9f73

View File

@ -6,7 +6,7 @@ namespace HegreHotel
{ {
public class SingletonConnection : SQLiteAsyncConnection public class SingletonConnection : SQLiteAsyncConnection
{ {
private static SingletonConnection instance; private static SingletonConnection? _instance;
private SingletonConnection(string dbPath) : base(dbPath) private SingletonConnection(string dbPath) : base(dbPath)
{ {
@ -14,11 +14,11 @@ namespace HegreHotel
public static SingletonConnection GetInstance(string dbPath) public static SingletonConnection GetInstance(string dbPath)
{ {
if (instance == null) if (_instance == null)
{ {
instance = new SingletonConnection(dbPath); _instance = new SingletonConnection(dbPath);
} }
return instance; return _instance;
} }
} }
} }