mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
Remove unnecessary promiuse usage. (#6585)
This commit is contained in:
parent
1244ec6954
commit
0cc2a1e7ef
18 changed files with 61 additions and 67 deletions
|
|
@ -44,7 +44,7 @@ const getMcpStatus = async (
|
|||
};
|
||||
}
|
||||
|
||||
const toolRegistry = await config.getToolRegistry();
|
||||
const toolRegistry = config.getToolRegistry();
|
||||
if (!toolRegistry) {
|
||||
return {
|
||||
type: 'message',
|
||||
|
|
@ -400,7 +400,7 @@ const authCommand: SlashCommand = {
|
|||
);
|
||||
|
||||
// Trigger tool re-discovery to pick up authenticated server
|
||||
const toolRegistry = await config.getToolRegistry();
|
||||
const toolRegistry = config.getToolRegistry();
|
||||
if (toolRegistry) {
|
||||
context.ui.addItem(
|
||||
{
|
||||
|
|
@ -485,7 +485,7 @@ const refreshCommand: SlashCommand = {
|
|||
};
|
||||
}
|
||||
|
||||
const toolRegistry = await config.getToolRegistry();
|
||||
const toolRegistry = config.getToolRegistry();
|
||||
if (!toolRegistry) {
|
||||
return {
|
||||
type: 'message',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue