diff options
author | melquiadess <31paths@gmail.com> | 2024-03-27 22:06:59 +0000 |
---|---|---|
committer | melquiadess <31paths@gmail.com> | 2024-03-28 23:36:38 +0000 |
commit | 70ea3e22a6b0021ecacb83a2e4ddd86988b8c180 (patch) | |
tree | f27da49737a98e6a97efff041d654b6a74e98bab /modules/gdscript/language_server/gdscript_extend_parser.cpp | |
parent | 29b3d9e9e538f0aa8effc8ad8bf19a2915292a89 (diff) | |
download | redot-engine-70ea3e22a6b0021ecacb83a2e4ddd86988b8c180.tar.gz |
Use ?. (and ?.let) safe operators instead of !!
This PR prevents potential NPEs, and follows Kotlin conventions more closely
by replacing the unsafe !! operator with safe ?. (or ?.let) (usually
!! would only be used very rarely, and with a good reason - there is one
place left in this PR where !! makes sense), and by replacing Java style
'if (x != null)' with Kotlin's '?.'
Diffstat (limited to 'modules/gdscript/language_server/gdscript_extend_parser.cpp')
0 files changed, 0 insertions, 0 deletions