refactor: remove redundant ID assignment in backupVolume command

- Eliminated duplicate ID assignment in the backupVolume function to streamline Docker command generation.
- Improved clarity and maintainability of the command logic by reducing unnecessary lines of code.
This commit is contained in:
Mauricio Siu
2025-06-30 01:35:32 -06:00
parent 9974b2326f
commit 2a2b947998

View File

@@ -53,7 +53,6 @@ const backupVolume = async (
ID=$(docker ps -q --filter "label=com.docker.compose.project=${compose.appName}" --filter "label=com.docker.compose.service=${volumeBackup.serviceName}")
docker stop $ID`;
startCommand = `
ID=$(docker ps -q --filter "label=com.docker.compose.project=${compose.appName}" --filter "label=com.docker.compose.service=${volumeBackup.serviceName}")
docker start $ID`;
}
return `