Skip to content

Commit be26885

Browse files
committed
no need to return on warn
1 parent b1b70fa commit be26885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/grunt-tasks/release.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ module.exports = function (grunt) {
5656
var next = semver.inc(current, version || 'patch') || version
5757

5858
if (!semver.valid(next)) {
59-
return grunt.fail.warn('Invalid version.')
59+
grunt.fail.warn('Invalid version.')
6060
}
6161
if (semver.lt(next, current)) {
62-
return grunt.fail.warn('Version is older than current.')
62+
grunt.fail.warn('Version is older than current.')
6363
}
6464

6565
readline.createInterface({

0 commit comments

Comments
 (0)