fix: remove redundant string in deprecation warning (#1336)

Signed-off-by: Frankzhaopku <syzhao1988@126.com>
This commit is contained in:
Frank Zhao 2020-09-08 01:23:54 +08:00 committed by GitHub
parent 86c19733ca
commit e0760b0ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ export class Probot {
public get webhook(): Webhooks {
this.log.warn(
new Deprecation(
`[probot] "probot.webhook" is deprecated. Use "probot.webhooks" instead instead`
`[probot] "probot.webhook" is deprecated. Use "probot.webhooks" instead`
)
);

View File

@ -36,7 +36,7 @@ describe("Deprecations", () => {
expect(output.length).toEqual(1);
expect(output[0].msg).toContain(
`[probot] "probot.webhook" is deprecated. Use "probot.webhooks" instead instead`
`[probot] "probot.webhook" is deprecated. Use "probot.webhooks" instead`
);
});