Copilot commented on code in PR #3602:
URL: https://github.com/apache/texera/pull/3602#discussion_r2338424915


##########
core/gui/src/app/workspace/service/joint-ui/joint-ui.service.ts:
##########
@@ -510,6 +510,51 @@ export class JointUIService {
     });
   }
 
+  private static RemoveButton: new () => joint.linkTools.Button; // private 
static property to cache the button class.
+
+  public getRemoveButton(): new () => joint.linkTools.Button {
+    // Check if the class has already been created.
+    if (!JointUIService.RemoveButton) {
+      // If not, create it ONCE and store it in the static property.

Review Comment:
   [nitpick] The comment uses incorrect capitalization and informal language. 
Should be 'once' instead of 'ONCE' for better professional documentation style.
   ```suggestion
         // If not, create it once and store it in the static property.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to