Change scope of type_json

This commit is contained in:
ligi 2016-04-06 17:08:06 +02:00
parent 439cce583e
commit c13cda89b5

View file

@ -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()