mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-09-16 18:02:40 +00:00
Enforce code style. #45
This commit is contained in:
+3
-4
@@ -4,12 +4,11 @@ let dataPath = null;
|
||||
|
||||
if (process.env.ZIGBEE2MQTT_DATA) {
|
||||
dataPath = process.env.ZIGBEE2MQTT_DATA;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
dataPath = path.join(__dirname, '..', '..', 'data');
|
||||
dataPath = path.normalize(dataPath);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
joinPath: (file) => path.join(dataPath, file)
|
||||
}
|
||||
joinPath: (file) => path.join(dataPath, file),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user