diff options
| author | XhmikosR <[email protected]> | 2020-04-23 21:08:35 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-23 11:08:35 -0700 |
| commit | 3647673f9e43ea973ebed65a891e897415cb2389 (patch) | |
| tree | 23d34a1565e8dc75b1f5623c4ea6846eb2b6738c /lib/getOptions.js | |
| parent | ff21930515e15e367a3d033230d0c5def75fc206 (diff) | |
| download | node-coveralls-3647673f9e43ea973ebed65a891e897415cb2389.tar.xz node-coveralls-3647673f9e43ea973ebed65a891e897415cb2389.zip | |
Minor lint tweaks (#285)
Diffstat (limited to 'lib/getOptions.js')
| -rw-r--r-- | lib/getOptions.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/getOptions.js b/lib/getOptions.js index 7fcbf08..2f9c9fb 100644 --- a/lib/getOptions.js +++ b/lib/getOptions.js @@ -180,6 +180,7 @@ const getBaseOptions = cb => { if (coveralls_yaml_conf.repo_token) { options.repo_token = coveralls_yaml_conf.repo_token; } + if (coveralls_yaml_conf.service_name) { options.service_name = coveralls_yaml_conf.service_name; } @@ -190,7 +191,7 @@ const getBaseOptions = cb => { options.repo_token = process.env.COVERALLS_REPO_TOKEN; } - if ('travis-pro' === options.service_name && !options.repo_token) { + if (options.service_name === 'travis-pro' && !options.repo_token) { logger.warn('Repo token could not be determined. Continuing without it. ' + 'This is necessary for private repos only, so may not be an issue at all.'); } |
