Change scope of type_json
This commit is contained in:
parent
439cce583e
commit
c13cda89b5
1 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,6 @@ object AppleStylePassReader {
|
|||
val pass = PassImpl(passFile.name)
|
||||
|
||||
var pass_json: JSONObject? = null
|
||||
var type_json: JSONObject? = null
|
||||
|
||||
val localized_path = findLocalizedPath(passFile, language)
|
||||
|
||||
|
@ -173,7 +172,7 @@ object AppleStylePassReader {
|
|||
}
|
||||
|
||||
try {
|
||||
type_json = pass_json.getJSONObject(PassDefinitions.TYPES.get(pass.type))
|
||||
val type_json = pass_json.getJSONObject(PassDefinitions.TYPES[pass.type])
|
||||
if (type_json != null) {
|
||||
val fieldList: ArrayList<PassField> = ArrayList()
|
||||
|
||||
|
|
Loading…
Reference in a new issue