Use early return in makepot.js

This commit is contained in:
Jan Jakes
2021-12-07 10:13:25 +01:00
committed by Veljko V
parent a144ec4d39
commit f6e1c0c101

View File

@@ -14,7 +14,9 @@ module.exports = function (grunt) {
if (base_path === undefined || grunt.file.exists(base_path) === false) {
grunt.fail.fatal("Missing --base_path argument");
} else {
return;
}
// configuration.
grunt.initConfig({
makepot: {
@@ -83,5 +85,4 @@ module.exports = function (grunt) {
grunt.registerTask('pushpot', ['shell:txpush']);
grunt.registerTask('update', ['makepot', 'shell:txpush']);
}
};