Skip to content
Snippets Groups Projects
Unverified Commit 6feac041 authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Fix a few code smells (DEV) (#2639)

parent 8d1bb4bc
No related branches found
No related tags found
No related merge requests found
......@@ -81,10 +81,8 @@ class AppConfigStorage @Inject constructor(
Timber.v("Overwriting %d from %s", configFile.length(), configFile.lastModified())
}
if (legacyConfigFile.exists()) {
if (legacyConfigFile.delete()) {
Timber.i("Legacy config file deleted, superseeded.")
}
if (legacyConfigFile.exists() && legacyConfigFile.delete()) {
Timber.i("Legacy config file deleted, superseeded.")
}
if (value == null) {
......
......@@ -70,8 +70,13 @@ abstract class ModularAdapter<VH : ModularAdapter.VH> : BaseAdapter<VH>() {
}
interface Binder<T : VH> : Module {
fun onBindModularVH(adapter: ModularAdapter<T>, vh: T, pos: Int, payloads: MutableList<Any>) {}
fun onPostBind(adapter: ModularAdapter<T>, vh: T, pos: Int) {}
fun onBindModularVH(adapter: ModularAdapter<T>, vh: T, pos: Int, payloads: MutableList<Any>) {
// NOOP
}
fun onPostBind(adapter: ModularAdapter<T>, vh: T, pos: Int) {
// NOOP
}
}
interface Typing : Module {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment