Skip to content

Commit

Permalink
Remove repo from createBuild client call
Browse files Browse the repository at this point in the history
  • Loading branch information
maprules1000 committed Aug 31, 2018
1 parent fff4ccb commit 2ea41e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Expand Up @@ -149,8 +149,6 @@ module.exports = {

var token = process.env.PERCY_TOKEN;
var apiUrl = process.env.PERCY_API; // Optional.
var environment = new Environment(process.env);
var repo = environment.repo;

// Disable if Percy is explicitly disabled or if this is not an 'ember test' run.
if (process.env.PERCY_ENABLE == '0' || process.env.EMBER_ENV !== 'test') {
Expand Down Expand Up @@ -182,7 +180,7 @@ module.exports = {
});

// Initialize the percy client and a new build.
percyBuildPromise = percyClient.createBuild(repo, {resources: resources});
percyBuildPromise = percyClient.createBuild({resources: resources});

// Return a promise and only resolve when all build resources are uploaded, which
// ensures that the output build dir is still available to be read from before deleted.
Expand Down

0 comments on commit 2ea41e4

Please sign in to comment.