小调整
parent
5e4e8b8385
commit
6a5edf44bc
|
@ -56,13 +56,13 @@ const Plugin = function (context) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await shell.exec(['git config --global --unset https.proxy '], { type: 'cmd' })
|
await shell.exec(['git config --global --unset https.proxy '], { type: 'cmd' })
|
||||||
} catch (ignore) {
|
} catch {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.get().plugin.git.setting.sslVerify === true) {
|
if (config.get().plugin.git.setting.sslVerify === true) {
|
||||||
try {
|
try {
|
||||||
await shell.exec(['git config --global --unset http.sslVerify '], { type: 'cmd' })
|
await shell.exec(['git config --global --unset http.sslVerify '], { type: 'cmd' })
|
||||||
} catch (ignore) {
|
} catch {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ const Plugin = function (context) {
|
||||||
for (const url in config.get().plugin.git.setting.noProxyUrls) {
|
for (const url in config.get().plugin.git.setting.noProxyUrls) {
|
||||||
try {
|
try {
|
||||||
await shell.exec([`git config --global --unset http."${url}".proxy `], { type: 'cmd' })
|
await shell.exec([`git config --global --unset http."${url}".proxy `], { type: 'cmd' })
|
||||||
} catch (ignore) {
|
} catch {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ function loadLastModifiedTimeFromTxt (fileTxt) {
|
||||||
if (matched && matched.length > 0) {
|
if (matched && matched.length > 0) {
|
||||||
try {
|
try {
|
||||||
return new Date(matched[0])
|
return new Date(matched[0])
|
||||||
} catch (ignore) {
|
} catch {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue