Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(1079): Remove unnecessary autoDeployKeyGenerationEnabled function #168

Merged
merged 6 commits into from Aug 5, 2020
9 changes: 0 additions & 9 deletions index.js
Expand Up @@ -372,15 +372,6 @@ class GithubScm extends Scm {
}
}

/**
* Returns whether auto deploy key generation is enabled or not
* @async _autoDeployKeyGenerationEnabled
* @return {Boolean} Resolves to the private key string
*/
async _autoDeployKeyGenerationEnabled() {
return this.config.autoDeployKeyGeneration;
}

/**
* Look up a webhook from a repo
* @async _findWebhook
Expand Down
8 changes: 0 additions & 8 deletions test/index.test.js
Expand Up @@ -1954,14 +1954,6 @@ jobs:
});
});

describe('autoDeployKeyGenerationEnabled', () => {
it('returns a boolean check', () =>
scm.autoDeployKeyGenerationEnabled().then((check) => {
assert.isBoolean(check);
})
);
});

describe('getBellConfiguration', () => {
it('returns a default configuration', () => (
scm.getBellConfiguration().then((config) => {
Expand Down