Skip to content

Commit

Permalink
fix: release stable
Browse files Browse the repository at this point in the history
  • Loading branch information
attriaayush committed Apr 28, 2022
1 parent 3d54474 commit baa23a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
environment: Stable
name: Release
steps:
- name: Fetch sources
uses: actions/checkout@v2

- name: Setup VSCE
run: sudo npm install -g vsce@latest

Expand Down
11 changes: 7 additions & 4 deletions src/snyk/common/configuration/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,13 @@ export class Configuration implements IConfiguration {
}

async clearToken(): Promise<void> {
return new Promise<void>((_, reject) => {
SecretStorageAdapter.instance.delete(SNYK_TOKEN_KEY).catch(error => {
reject(error);
});
return new Promise<void>((resolve, reject) => {
SecretStorageAdapter.instance
.delete(SNYK_TOKEN_KEY)
.then(() => resolve())
.catch(error => {
reject(error);
});
});
}

Expand Down

0 comments on commit baa23a4

Please sign in to comment.