Use early return in makepot.js
This commit is contained in:
@@ -14,7 +14,9 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
if (base_path === undefined || grunt.file.exists(base_path) === false) {
|
if (base_path === undefined || grunt.file.exists(base_path) === false) {
|
||||||
grunt.fail.fatal("Missing --base_path argument");
|
grunt.fail.fatal("Missing --base_path argument");
|
||||||
} else {
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// configuration.
|
// configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
makepot: {
|
makepot: {
|
||||||
@@ -83,5 +85,4 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
grunt.registerTask('pushpot', ['shell:txpush']);
|
grunt.registerTask('pushpot', ['shell:txpush']);
|
||||||
grunt.registerTask('update', ['makepot', 'shell:txpush']);
|
grunt.registerTask('update', ['makepot', 'shell:txpush']);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user