aboutsummaryrefslogtreecommitdiff
path: root/lib/getOptions.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-04-23 21:08:35 +0300
committerGitHub <[email protected]>2020-04-23 11:08:35 -0700
commit3647673f9e43ea973ebed65a891e897415cb2389 (patch)
tree23d34a1565e8dc75b1f5623c4ea6846eb2b6738c /lib/getOptions.js
parentff21930515e15e367a3d033230d0c5def75fc206 (diff)
downloadnode-coveralls-3647673f9e43ea973ebed65a891e897415cb2389.tar.xz
node-coveralls-3647673f9e43ea973ebed65a891e897415cb2389.zip
Minor lint tweaks (#285)
Diffstat (limited to 'lib/getOptions.js')
-rw-r--r--lib/getOptions.js3
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.');
}