From 8e61e46a9090a42046053307a8d30ea60f0d2085 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 14 Nov 2016 18:55:48 +0100 Subject: [PATCH] simplify the config creation --- app/src/main/kotlin/com/simplemobiletools/gallery/Config.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/Config.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/Config.kt index c3eec4d6c..6266074a5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/Config.kt @@ -8,9 +8,7 @@ class Config private constructor(context: Context) { private val mPrefs: SharedPreferences companion object { - fun newInstance(context: Context): Config { - return Config(context) - } + fun newInstance(context: Context) = Config(context) } init {