Skip to content

Commit

Permalink
fix crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
kalturaguy committed Jun 29, 2016
1 parent 577e82e commit 5e7906c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Adapters/RegressionAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ var basePath=__dirname + "/../../tests/resources/liveSessionData/";

var regressionAdapterConfig = config.get('regressionAdapter');

if (!regressionAdapterConfig || !regressionAdapterConfig.enable) {
return;
}

function readFile(res,entryId,flavorId,file) {
fs.readFile(basePath + entryId + "/" + flavorId + "/" + file, function (err, data) {
if (err) {
Expand Down

0 comments on commit 5e7906c

Please sign in to comment.