minor code style update

This commit is contained in:
Tibor Kaputa 2023-06-27 11:37:34 +02:00 committed by GitHub
parent 0ead92bab0
commit 15169a6280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,6 @@ fun parseRawEmojiSpecsFile(context: Context, path: String): MutableList<String>
return emojis return emojis
} }
fun parseRawJsonSpecsFile(context: Context, path: String): HashMap<String, String> { fun parseRawJsonSpecsFile(context: Context, path: String): HashMap<String, String> {
if (cachedVNTelexData.isNotEmpty()) { if (cachedVNTelexData.isNotEmpty()) {
return cachedVNTelexData return cachedVNTelexData
@ -80,8 +79,7 @@ fun parseRawJsonSpecsFile(context: Context, path: String): HashMap<String, Strin
val value = rulesObj.getString(key) val value = rulesObj.getString(key)
cachedVNTelexData[key] = value cachedVNTelexData[key] = value
} }
} catch (ex: Exception) { } catch (ignored: Exception) {
ex.printStackTrace()
return HashMap() return HashMap()
} }
return cachedVNTelexData return cachedVNTelexData