Explorar el Código

no need to return on warn

Evan You hace 10 años
padre
commit
df71954c15
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      build/grunt-tasks/release.js

+ 2 - 2
build/grunt-tasks/release.js

@@ -56,10 +56,10 @@ module.exports = function (grunt) {
     var next = semver.inc(current, version || 'patch') || version
 
     if (!semver.valid(next)) {
-      return grunt.fail.warn('Invalid version.')
+      grunt.fail.warn('Invalid version.')
     }
     if (semver.lt(next, current)) {
-      return grunt.fail.warn('Version is older than current.')
+      grunt.fail.warn('Version is older than current.')
     }
 
     readline.createInterface({