https://kotlinlang.org logo
s

sargunv

06/20/2016, 10:08 PM
Which style do you all think is more readable, this:
Copy code
val client = OkHttpClient()
        val request = Request.Builder()
                .get()
                .url(MockServer.url)
                .build()
        val call = client.newCall(request)
        val response = call.execute()
        val body = response.body()
        val content = body.string()
or this?
Copy code
val content = OkHttpClient()
                .newCall(Request.Builder()
                        .get()
                        .url(MockServer.url)
                        .build())
                .execute()
                .body()
                .string()
2️⃣ 3
1️⃣ 1