removed cline instance type check to allow mocks

This commit is contained in:
ShayBC 2025-02-28 04:54:14 +02:00
parent 5651b35f89
commit b1dae213c5

View file

@ -96,7 +96,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
// When the task is completed, the top instance is removed, reactivating the previous task.
async addClineToStack(cline: Cline) {
try {
if (!cline || !(cline instanceof Cline)) {
if (!cline) {
throw new Error("Error invalid Cline instance provided.")
}