Skip to content
Snippets Groups Projects
Unverified Commit 12106a7f authored by dionisio-bot[bot]'s avatar dionisio-bot[bot] Committed by GitHub
Browse files

chore: better instant to call `getCachedSupportedVersionsToken.reset()` (#32255)

parent 04448e54
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,6 @@ import { syncCloudData } from './syncCloudData'; ...@@ -13,7 +13,6 @@ import { syncCloudData } from './syncCloudData';
*/ */
export async function syncWorkspace() { export async function syncWorkspace() {
try { try {
await getCachedSupportedVersionsToken.reset();
await announcementSync(); await announcementSync();
await syncCloudData(); await syncCloudData();
} catch (err) { } catch (err) {
...@@ -33,7 +32,6 @@ export async function syncWorkspace() { ...@@ -33,7 +32,6 @@ export async function syncWorkspace() {
function: 'syncCloudData', function: 'syncCloudData',
}); });
try { try {
await getCachedSupportedVersionsToken.reset();
await legacySyncWorkspace(); await legacySyncWorkspace();
} catch (err) { } catch (err) {
switch (true) { switch (true) {
...@@ -52,5 +50,7 @@ export async function syncWorkspace() { ...@@ -52,5 +50,7 @@ export async function syncWorkspace() {
} }
} }
} }
} finally {
await getCachedSupportedVersionsToken.reset();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment