Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval authored Nov 11, 2021
1 parent 2c7bbb7 commit 1b6f5bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/commandsAndMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export function addCommands(
execute: async args => {
try {
if (args.discard) {
await discardAllChanges(gitModel, trans);
await discardAllChanges(gitModel, trans, args.fallback);
}
logger.log({
level: Level.RUNNING,
Expand Down Expand Up @@ -430,8 +430,7 @@ export function addCommands(
'your local changes to the following files would be overwritten by merge'
)
) {
await discardAllChanges(gitModel, trans, true);
await commands.execute(CommandIDs.gitPull);
await commands.execute(CommandIDs.gitPull, {discard: true, fallback: true});
} else {
logger.log({
message: trans.__('Failed to pull'),
Expand Down

0 comments on commit 1b6f5bd

Please sign in to comment.