Remove redundant servicePath variable from SettingsPersistence
This commit is contained in:
		| @@ -88,7 +88,7 @@ protected: | |||||||
|  |  | ||||||
|   public: |   public: | ||||||
|  |  | ||||||
|     SettingsPersistence(FS* fs, char const* servicePath, char const* filePath): |     SettingsPersistence(FS* fs, char const* filePath): | ||||||
|       _fs(fs), _filePath(filePath) {} |       _fs(fs), _filePath(filePath) {} | ||||||
|  |  | ||||||
|     virtual ~SettingsPersistence() {} |     virtual ~SettingsPersistence() {} | ||||||
|   | |||||||
| @@ -60,7 +60,7 @@ private: | |||||||
|   public: |   public: | ||||||
|  |  | ||||||
|     SettingsService(AsyncWebServer* server, FS* fs, char const* servicePath, char const* filePath): |     SettingsService(AsyncWebServer* server, FS* fs, char const* servicePath, char const* filePath): | ||||||
|       SettingsPersistence(fs, servicePath, filePath), _server(server) { |       SettingsPersistence(fs, filePath), _server(server) { | ||||||
|  |  | ||||||
|       // configure fetch config handler |       // configure fetch config handler | ||||||
|       _server->on(servicePath, HTTP_GET, std::bind(&SettingsService::fetchConfig, this, std::placeholders::_1)); |       _server->on(servicePath, HTTP_GET, std::bind(&SettingsService::fetchConfig, this, std::placeholders::_1)); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user