Skip to content

Commit a98f1d4

Browse files
committed
Remove redundant servicePath variable from SettingsPersistence
1 parent e8de21a commit a98f1d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SettingsPersistence.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SettingsPersistence {
8888

8989
public:
9090

91-
SettingsPersistence(FS* fs, char const* servicePath, char const* filePath):
91+
SettingsPersistence(FS* fs, char const* filePath):
9292
_fs(fs), _filePath(filePath) {}
9393

9494
virtual ~SettingsPersistence() {}

src/SettingsService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class SettingsService : public SettingsPersistence {
6060
public:
6161

6262
SettingsService(AsyncWebServer* server, FS* fs, char const* servicePath, char const* filePath):
63-
SettingsPersistence(fs, servicePath, filePath), _server(server) {
63+
SettingsPersistence(fs, filePath), _server(server) {
6464

6565
// configure fetch config handler
6666
_server->on(servicePath, HTTP_GET, std::bind(&SettingsService::fetchConfig, this, std::placeholders::_1));

0 commit comments

Comments
 (0)