Skip to content

Commit

Permalink
chore: fix some typos (conwnet#560)
Browse files Browse the repository at this point in the history
Signed-off-by: vitalmotif <zhangshengqiang@outlook.com>
  • Loading branch information
vitalmotif authored Mar 27, 2024
1 parent 90c7fb4 commit e5cdf8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/github1s/src/commands/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const commandOpenFilePreviousRevision = async (fileUri: vscode.Uri) => {

const repository = Repository.getInstance(fileUri.scheme, repo);
const leftCommit = await repository.getPreviousCommit(rightCommitSha, fileUri.path.slice(1));
// if we can't find previous commit, use the the `emptyFileUri` as the leftFileUri
// if we can't find previous commit, use the `emptyFileUri` as the leftFileUri
const leftFileUri = leftCommit ? rightFileUri.with({ authority: `${repo}+${leftCommit.sha}` }) : emptyFileUri;

const changedStatus = leftCommit ? FileChangeStatus.Modified : FileChangeStatus.Added;
Expand Down
2 changes: 1 addition & 1 deletion src/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const NOTIFICATION_STORAGE_KEY = 'GITHUB1S_NOTIFICATION';
// Change this if a new notification should be shown
const NOTIFICATION_STORAGE_VALUE = '20210212';

/*** begin notificaton block ***/
/*** begin notification block ***/
export const renderNotification = (platform: string) => {
// If user has confirmed the notification and checked `don't show me again`, ignore it
if (window.localStorage.getItem(NOTIFICATION_STORAGE_KEY) === NOTIFICATION_STORAGE_VALUE) {
Expand Down

0 comments on commit e5cdf8e

Please sign in to comment.