Skip to content

Commit

Permalink
refactor(status): simplify statusInfo assignment in StatusProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Sma1lboy committed Feb 24, 2025
1 parent a942cf7 commit ea38981
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions clients/tabby-agent/src/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,13 @@ export class StatusProvider extends EventEmitter implements Feature {
} else {
switch (this.configurations.getClientProvidedConfig().inlineCompletion?.triggerMode) {
case "auto":
statusInfo = {
status: "readyForAutoTrigger",
};
statusInfo = { status: "readyForAutoTrigger" };
break;
case "manual":
statusInfo = {
status: "readyForManualTrigger",
};
statusInfo = { status: "readyForManualTrigger" };
break;
default:
statusInfo = {
status: "ready",
};
statusInfo = { status: "ready" };
break;
}
}
Expand Down

0 comments on commit ea38981

Please sign in to comment.