Skip to content

feat: explicitly throw if TeamTemplate.getRawOrNil gets nil input#7705

Open
ElectricalBoy wants to merge 3 commits into
mainfrom
team-template-better-nil
Open

feat: explicitly throw if TeamTemplate.getRawOrNil gets nil input#7705
ElectricalBoy wants to merge 3 commits into
mainfrom
team-template-better-nil

Conversation

@ElectricalBoy

Copy link
Copy Markdown
Collaborator

Summary

Inspiration: #6863 (comment)

This PR adjusts TeamTemplate.getRawOrNil to explicitly throw if team argument is nil.
There is no change in behavior (team:gsub throws if team is nil in the current implementation anyway); this is for making the check explicit and generating a more comprehensive error message.

How did you test this change?

trivial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants