summaryrefslogtreecommitdiffstats
path: root/platform/javascript/api/javascript_tools_editor_plugin.h
diff options
context:
space:
mode:
authormelquiadess <31paths@gmail.com>2024-03-27 22:06:59 +0000
committermelquiadess <31paths@gmail.com>2024-03-28 23:36:38 +0000
commit70ea3e22a6b0021ecacb83a2e4ddd86988b8c180 (patch)
treef27da49737a98e6a97efff041d654b6a74e98bab /platform/javascript/api/javascript_tools_editor_plugin.h
parent29b3d9e9e538f0aa8effc8ad8bf19a2915292a89 (diff)
downloadredot-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 'platform/javascript/api/javascript_tools_editor_plugin.h')
0 files changed, 0 insertions, 0 deletions