Skip to content

Commit

Permalink
🚨 fix kt lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkim2689 committed Jul 24, 2024
1 parent 15a10fe commit 156b6ae
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,21 @@ fun setSpinnerListener(
return
}

val onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
override fun onItemSelected(
parent: AdapterView<*>,
view: View?,
position: Int,
id: Long,
) {
listener.onChange()
}
val onItemSelectedListener =
object : AdapterView.OnItemSelectedListener {
override fun onItemSelected(
parent: AdapterView<*>,
view: View?,
position: Int,
id: Long,
) {
listener.onChange()
}

override fun onNothingSelected(parent: AdapterView<*>) {
// do nothing
override fun onNothingSelected(parent: AdapterView<*>) {
// do nothing
}
}
}

spinner.onItemSelectedListener = onItemSelectedListener
}

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package net.pengcook.android.presentation.signup

import java.io.File

sealed interface SignUpEvent {
class NavigateToMain(
val accessToken: String,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class SignUpFragment : Fragment() {
try {
viewModel.changeProfileImage(uri)
} catch (e: RuntimeException) {

}
}

Expand Down Expand Up @@ -108,7 +107,6 @@ class SignUpFragment : Fragment() {
findNavController().navigate(R.id.action_signUpFragment_to_homeFragment)
}
is SignUpEvent.Error -> {

}
is SignUpEvent.NavigateBack -> {
findNavController().navigate(R.id.action_signUpFragment_to_onboardingFragment)
Expand All @@ -117,4 +115,3 @@ class SignUpFragment : Fragment() {
}
}
}

0 comments on commit 156b6ae

Please sign in to comment.