Skip to content

Commit

Permalink
Fix karma-runner#87: Do not break when no outputFile is set
Browse files Browse the repository at this point in the history
  • Loading branch information
matthauck committed Mar 11, 2016
1 parent 7c0fd36 commit 3276985
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 != null && pathIsAbsolute(outputFile)) {
newOutputFile = outputFile
} else if (outputFile != null) {
var dir = useBrowserName ? path.join(outputDir, safeBrowserName)
Expand Down

0 comments on commit 3276985

Please sign in to comment.