Skip to content

Commit

Permalink
fix: 修复版本判断错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
giscafer committed Sep 4, 2024
1 parent 576ed64 commit c51f947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function setGlobalVariable() {
// 临时解决3.10.1~3.10.3 pr产生的分组bug
const leekFundExt = extensions.getExtension('giscafer.leek-fund');
const currentVersion = leekFundExt?.packageJSON?.version;
if (compare(currentVersion, '3.9.2', '>=') && compare(currentVersion, '3.10.3', '<=')) {
if (compare(currentVersion, '3.9.2', '>=')) {
const arr = LeekFundConfig.getConfig('leek-fund.stocks') || [];
const stockList = uniq(compact(flattenDeep(arr)));
LeekFundConfig.setConfig('leek-fund.stocks', stockList);
Expand Down

0 comments on commit c51f947

Please sign in to comment.