VolantisDev / Launchpad

Step up your non-Steam game! Generate Steam-compatible .exe files to effortlessly launch any game through Steam with overlay support.
https://launchpad.games
MIT License
88 stars 3 forks source link

Make this code more readable #212

Closed github-actions[bot] closed 3 years ago

github-actions[bot] commented 3 years ago

Make this code more readable

https://github.com/VolantisDev/Launchpad/blob/6f379f945221c3126c5e6b2c3328f206d7079c72/Lib/Shared/DataLib/StructuredData/JsonData.ahk#L156


            memType := Type(obj)
            is_array := (memType == "Array")

            ; TODO: Make this code more readable
            if (memType ? (memType != "Object" && memType != "Map" && memType != "Array") : (ObjGetCapacity(obj) == "")) {
                throw OperationFailedException.new("Object type not supported.", -1, Format("<Object at 0x{:p}>", ObjPtr(obj)))
            }

1cab4add17c2f7784c42d074a74d6cf860404f53