mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix ReadableNativeMap linting warning (#44596)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44596 Minor fix to get CI running again. Changelog: [Internal] Reviewed By: GijsWeterings Differential Revision: D57454420 fbshipit-source-id: be80fbc8e899ad9aaeafa2cf63fbb6cd4ce32269
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1aabefc5b3
commit
0c7095faa3
-1
@@ -173,7 +173,6 @@ public open class ReadableNativeMap protected constructor(hybridData: HybridData
|
||||
ReadableType.String -> {}
|
||||
ReadableType.Map -> hashMap[key] = Assertions.assertNotNull(getMap(key)).toHashMap()
|
||||
ReadableType.Array -> hashMap[key] = Assertions.assertNotNull(getArray(key)).toArrayList()
|
||||
else -> throw IllegalArgumentException("Could not convert object with key: $key.")
|
||||
}
|
||||
}
|
||||
return hashMap
|
||||
|
||||
Reference in New Issue
Block a user