diff options
| author | cainus <[email protected]> | 2013-05-24 13:01:36 -0700 |
|---|---|---|
| committer | cainus <[email protected]> | 2013-05-24 13:01:36 -0700 |
| commit | 3a04d6da55d49f62dc86b78f21f560274dbc3c7d (patch) | |
| tree | 5572fd53139031c138bf27c32dc3f6fd08752fd8 /lib/convertLcovToCoveralls.js | |
| parent | 4041ac05463ef758215c808e1148c3e467b615a1 (diff) | |
| download | node-coveralls-3a04d6da55d49f62dc86b78f21f560274dbc3c7d.tar.xz node-coveralls-3a04d6da55d49f62dc86b78f21f560274dbc3c7d.zip | |
allow a null repo_token.
Diffstat (limited to 'lib/convertLcovToCoveralls.js')
| -rw-r--r-- | lib/convertLcovToCoveralls.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/convertLcovToCoveralls.js b/lib/convertLcovToCoveralls.js index 2b5e223..3f63f15 100644 --- a/lib/convertLcovToCoveralls.js +++ b/lib/convertLcovToCoveralls.js @@ -13,9 +13,9 @@ var detailsToCoverage = function(length, details){ var convertLcovFileObject = function(file, filepath){ if (file.file[0] !== '/'){ - filepath = path.join(filepath, file.file); + filepath = path.join(filepath, file.file); } else { - filepath = file.file; + filepath = file.file; } var source = fs.readFileSync(filepath, 'utf8'); var lines = source.split("\n"); @@ -35,7 +35,7 @@ var convertLcovToCoveralls = function(input, filepath, repo_token, cb){ var postJson = { source_files : [] }; - if (typeof repo_token !== "undefined" && repo_token !== null) { + if (repo_token) { postJson.repo_token = repo_token; } else { postJson.service_job_id = TRAVIS_JOB_ID; |
