añadidas condiciones para evitar nulos#92
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 903bc99308
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| else{ | ||
| return Command::FAILURE; |
There was a problem hiding this comment.
Continue when the import already exists
When Init.php already contains the needed core import but is missing this mod registration—for example after a previous run aborted after writing the use, or after a user added the import manually—this branch returns before calling addToInitFunction(), leaving the newly created Mod/*.php file unregistered. InitEditor::addUse() returns null for duplicate imports as well as failures, so the duplicate-import case should be skipped rather than treated as fatal.
Useful? React with 👍 / 👎.
añadidas condiciones para evitar nulos en el comando mod ya que podía ocurrir que borrase el init.php