From 34a0d266d00fd5f23a5cb3fe7f15b869d6a97004 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Thu, 8 Mar 2012 14:51:09 +0000 Subject: [PATCH] fixed up arrays.orEmpty() API - thanks again Stepan! --- libraries/stdlib/src/Arrays.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/stdlib/src/Arrays.kt b/libraries/stdlib/src/Arrays.kt index be457620ccc..435e65ae488 100644 --- a/libraries/stdlib/src/Arrays.kt +++ b/libraries/stdlib/src/Arrays.kt @@ -108,5 +108,5 @@ inline fun Array.notEmpty() : Boolean = !this.isEmpty() inline fun Array.isEmpty() : Boolean = this.size == 0 /** Returns the array if its not null or else returns an empty array */ -inline fun Array?.orEmpty() : Array = if (this != null) this else array() +inline fun Array?.orEmpty() : Array = if (this != null) this else array()