[Improvement]: Change bal add
generated code to adhere to best practices
#41775
Labels
Area/CLI
Ballerina CLI related issues.
good first issue
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Improvement
Description
The current generated code when we add a module using
bal add
looks like,Describe your problem(s)
How ever it is not the best practice to use a NOT to negate the
name is ""
.Describe your solution(s)
Instead, we should use
if name !is ""
there.Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: