Skip to content

Commit

Permalink
Merge pull request #89 from vermeeca/absolute_outputfile
Browse files Browse the repository at this point in the history
Check if outputFile is set before checking if it is an absolute path
  • Loading branch information
dignifiedquire committed Mar 21, 2016
2 parents 7c0fd36 + c8887ac commit de8b133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var JUnitReporter = function (baseReporterDecorator, config, logger, helper, for
var writeXmlForBrowser = function (browser) {
var safeBrowserName = browser.name.replace(/ /g, '_')
var newOutputFile
if (pathIsAbsolute(outputFile)) {
if (outputFile && pathIsAbsolute(outputFile)) {
newOutputFile = outputFile
} else if (outputFile != null) {
var dir = useBrowserName ? path.join(outputDir, safeBrowserName)
Expand Down

0 comments on commit de8b133

Please sign in to comment.