Browse Source

Make getDefaultAccount inline

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 year ago
parent
commit
d1e3f59afc
1 changed files with 1 additions and 4 deletions
  1. 1 4
      app/src/main/java/com/nextcloud/client/mixins/SessionMixin.kt

+ 1 - 4
app/src/main/java/com/nextcloud/client/mixins/SessionMixin.kt

@@ -60,10 +60,7 @@ class SessionMixin(
      * If no valid ownCloud [Account] exists, then the user is requested
      * to create a new ownCloud [Account].
      */
-    private fun getDefaultAccount(): Account {
-        // default to the most recently used account
-        return accountManager.currentAccount
-    }
+    private fun getDefaultAccount(): Account = accountManager.currentAccount
 
     /**
      * Launches the account creation activity.