File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,12 @@ export abstract class AtlasLocalToolBase extends ToolBase {
1616 const client = this . session . atlasLocalClient ;
1717
1818 // If the client is not found, throw an error
19- // This should never happen, because the tool should have been disabled.
20- // verifyAllowed in the base class returns false if the client is not found
19+ // This should never happen:
20+ // - atlas-local tools are only added after the client is set
21+ // this means that if we were unable to get the client, the tool will not be registered
22+ // - in case the tool was registered by accident
23+ // verifyAllowed in the base class would still return false preventing the tool from being registered,
24+ // preventing the tool from being executed
2125 if ( ! client ) {
2226 throw new Error ( "Atlas Local client not found, tool should have been disabled." ) ;
2327 }
You can’t perform that action at this time.
0 commit comments