Skip to content

Commit 3a0776b

Browse files
committed
feat(android_sidebar): correct sonar problems
1 parent 1f05c64 commit 3a0776b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

xpeapp_android/app/src/main/java/com/xpeho/xpeapp/data/service/WordpressRepository.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,20 +213,20 @@ class WordpressRepository(
213213
NO_CONTENT -> return UpdatePasswordResult.Success
214214
INTERNAL_SERVER_ERROR -> result.errorBody()?.string()?.let {
215215
if (it.contains("incorrect_password")) {
216-
Log.d("WordpressRepository: updatePassword", "Incorrect initial password")
216+
Log.d("WordpressRepository: updatePasswordIncorrectInitialPassword", "Incorrect initial password")
217217
return UpdatePasswordResult.IncorrectInitialPassword
218218
}
219219
if (it.contains("password_mismatch")) {
220-
Log.d("WordpressRepository: updatePassword", "Password mismatch")
220+
Log.d("WordpressRepository: updatePasswordPasswordMismatch", "Password mismatch")
221221
return UpdatePasswordResult.PasswordMismatch
222222
}
223223
}
224224
}
225-
Log.e("WordpressRepository: updatePassword", "Unknown error: ${result.code()}")
225+
Log.e("WordpressRepository: updatePasswordUnknownError", "Unknown error: ${result.code()}")
226226
return UpdatePasswordResult.NetworkError
227227
},
228228
catchBody = {
229-
Log.e("WordpressRepository: fetchUserInfos", "Network error: ${it.message}")
229+
Log.e("WordpressRepository: updatePasswordNetworkError", "Network error: ${it.message}")
230230
return UpdatePasswordResult.NetworkError
231231
}
232232
)

xpeapp_android/app/src/main/java/com/xpeho/xpeapp/domain/AuthenticationManager.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import android.util.Log
44
import androidx.annotation.VisibleForTesting
55
import com.xpeho.xpeapp.data.DatastorePref
66
import com.xpeho.xpeapp.data.entity.AuthentificationBody
7-
import com.xpeho.xpeapp.data.entity.user.UserEditPassword
87
import com.xpeho.xpeapp.data.model.AuthResult
98
import com.xpeho.xpeapp.data.model.WordpressToken
109
import com.xpeho.xpeapp.data.service.FirebaseService

xpeapp_android/app/src/main/java/com/xpeho/xpeapp/ui/page/user/ProfileEditPasswordView.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ fun ProfileEditPasswordView(
5959
).show()
6060
onComplete()
6161
}
62-
else -> {}
6362
}
6463

6564

0 commit comments

Comments
 (0)