Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shanalikhan committed Sep 20, 2019
1 parent 45a2797 commit e150b2d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ export class Sync {

try {
localConfig.publicGist = false;
if (optArgument) {
if (optArgument === "publicGIST") {
localConfig.publicGist = true;
}
if (optArgument && optArgument === "publicGIST") {
localConfig.publicGist = true;
}

github = new GitHubService(
Expand Down Expand Up @@ -405,7 +403,7 @@ export class Sync {
);
}

if (optArgument) {
if (optArgument && optArgument === "publicGIST") {
vscode.window.showInformationMessage(
localize("cmd.updateSettings.info.shareGist")
);
Expand Down

0 comments on commit e150b2d

Please sign in to comment.