Help me finding a smarter way to write kotlin code

I’m new in Kotlin. I’ve the following piece of code.

 if(Build.VERSION.SDK_INT>21){ Picasso .get() .load(galleryItemList[position].name) .transform(squareTransformation) .into(holder.image) }else{ Picasso .get() .load(galleryItemList[position].name) .into(holder.image) } 

In this the only difference between both branching block is if it’s will transform the image if the build version SDK is greater than 21. I’ve already seen, so much smart and easy syntax in Kotlin. Can anyone tell me how can I make it smart ?

submitted by /u/maifee
[link] [comments]