chore: remove repetitive words (#6290)

Signed-off-by: reallylowest <sunjinping@outlook.com>
This commit is contained in:
reallylowest 2024-04-01 22:47:51 +08:00 committed by GitHub
parent 10ef48a199
commit ed1c5dd184
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -355,7 +355,7 @@ exports.getChatHistory = async (padID: string, start:number, end:number) => {
throw new CustomError('end is higher than the current chatHead', 'apierror');
}
// the the whole message-log and return it to the client
// the whole message-log and return it to the client
const messages = await pad.getChatMessages(start, end);
return {messages};

View file

@ -449,7 +449,7 @@ class PadDiff {
// this method is 80% like Changeset.inverse. I just changed so instead of reverting,
// it adds deletions and attribute changes to to the atext.
// it adds deletions and attribute changes to the atext.
PadDiff.prototype._createDeletionChangeset = function (cs, startAText, apool) {
};

View file

@ -69,7 +69,7 @@ const flatten1 = (array) => array.reduce((a, b) => a.concat(b), []);
// A hook function settles when it provides a value (via callback or return) or throws. If a hook
// function attempts to settle again (e.g., call the callback again, or call the callback and also
// return a value) then the second attempt has no effect except either an error message is logged or
// there will be an unhandled promise rejection depending on whether the the subsequent attempt is a
// there will be an unhandled promise rejection depending on whether the subsequent attempt is a
// duplicate (same value or error) or different, respectively.
//
// See the tests in src/tests/backend/specs/hooks.js for examples of supported and prohibited

View file

@ -75,7 +75,7 @@ test.describe('embed links', function () {
expect(shareLink).toBe(padURL);
});
test('is an iframe with the the correct url parameters and correct size', async function ({page}) {
test('is an iframe with the correct url parameters and correct size', async function ({page}) {
const shareButton = page.locator('.buttonicon-embed')
await shareButton.click()
@ -111,7 +111,7 @@ test.describe('embed links', function () {
expect(containsReadOnlyLink).toBe(true);
});
test('the embed as iframe code is an iframe with the the correct url parameters and correct size', async function ({page}) {
test('the embed as iframe code is an iframe with the correct url parameters and correct size', async function ({page}) {
// open share dropdown