Skip to content

Commit

Permalink
chore: removed duplicate if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
efstathiosntonas committed Jan 28, 2025
1 parent d033edf commit c46148f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,10 @@ class RNMBXImagesManager(private val mContext: ReactApplicationContext) :
Logger.e("RNMBXImages", "each element of strech should be an array but was: ${array.getDynamic(i)}")
} else {
val pair = array.getArray(i)
if (pair != null) {
if (pair != null) {
if (pair.size() != 2 || pair.getType(0) != ReadableType.Number || pair.getType(1) != ReadableType.Number) {
Logger.e("RNMBXImages", "each element of stretch should be pair of 2 integers but was ${pair}")
}
}
if (pair != null) {
result.add(ImageStretches(pair.getDouble(0).toFloat(), pair.getDouble(1).toFloat()))
}
}
Expand Down

0 comments on commit c46148f

Please sign in to comment.