Skip to content

Commit

Permalink
fix(js): Fix validation of set-commits options (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeboot authored and jan-auer committed Nov 6, 2019
1 parent 6d316cc commit 3346f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/releases/index.js
Expand Up @@ -59,9 +59,9 @@ class Releases {
* @memberof SentryReleases
*/
setCommits(release, options) {
if (!options || !options.repo || (!options.auto && !options.commit)) {
if (!options || (!options.auto && (!options.repo || !options.commit))) {
throw new Error(
'options.repo, and either options.commit or options.auto must be specified'
'options.auto, or options.repo and options.commit must be specified'
);
}

Expand Down

0 comments on commit 3346f3a

Please sign in to comment.