[x] make test-all (UNIX) passes. CI will also test this
[ ] unit and/or integration tests are included (if applicable)
[ ] documentation is changed or added (if applicable)
Description of change
Before dgoss edit returned a 1 return code if GOSS_VARS was unset but the command was valid.
By refactoring the test of GOSS_VARS with the if clause, dgoss edit command returns the return code of get_docker_file function.
Checklist
make test-all
(UNIX) passes. CI will also test thisDescription of change
Before dgoss edit returned a 1 return code if GOSS_VARS was unset but the command was valid. By refactoring the test of GOSS_VARS with the if clause, dgoss edit command returns the return code of get_docker_file function.