Skip to content

Commit

Permalink
Refator: Remove unnecessary semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Apr 16, 2024
1 parent bf5815a commit fb070b6
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fun KClass<InputStream>.nullInputStream(): InputStream =

override fun read(): Int {
ensureOpen()
return -1;
return -1
}

override fun read(bytes: ByteArray, offset: Int, length: Int): Int {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* All Rights Reserved.
*/

package me.zhanghai.android.files.filejob;
package me.zhanghai.android.files.filejob

import android.app.PendingIntent
import android.content.Intent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class FileListFragment : Fragment(), BreadcrumbLayout.Listener, FileListAdapter.
R.id.action_create_directory -> showCreateDirectoryDialog()
}
// Returning false causes the speed dial to close without animation.
//return false;
//return false
binding.speedDialView.close()
true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class NavigationFragment : Fragment(), NavigationItem.Listener {

binding.recyclerView.setHasFixedSize(true)
// TODO: Needed?
//binding.recyclerView.setItemAnimator(new NoChangeAnimationItemAnimator());
//binding.recyclerView.setItemAnimator(new NoChangeAnimationItemAnimator())
val context = requireContext()
binding.recyclerView.layoutManager = LinearLayoutManager(context)
adapter = NavigationListAdapter(this, context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ class ByteBufferInputStream(buffer: ByteBuffer) : InputStream() {
buffer = null
}

private fun ensureOpen(): ByteBuffer = buffer ?: throw IOException("Stream closed");
private fun ensureOpen(): ByteBuffer = buffer ?: throw IOException("Stream closed")
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ package me.zhanghai.android.files.provider.ftp.client

enum class Mode {
ACTIVE,
PASSIVE;
PASSIVE
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ enum class ThemeColor(@ColorRes val resourceId: Int) {
MATERIAL_DEEP_ORANGE(R.color.material_deep_orange),
MATERIAL_BROWN(R.color.material_brown),
MATERIAL_GREY(R.color.material_grey),
MATERIAL_BLUE_GREY(R.color.material_blue_grey);
MATERIAL_BLUE_GREY(R.color.material_blue_grey)
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ enum class NightMode(val value: Int) {
OFF(AppCompatDelegate.MODE_NIGHT_NO),
ON(AppCompatDelegate.MODE_NIGHT_YES),
AUTO_TIME(AppCompatDelegate.MODE_NIGHT_AUTO_TIME),
AUTO_BATTERY(AppCompatDelegate.MODE_NIGHT_AUTO_BATTERY);
AUTO_BATTERY(AppCompatDelegate.MODE_NIGHT_AUTO_BATTERY)
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ object ClickableArrowKeyMovementMethod : ArrowKeyMovementMethod() {
}
// Removed
//else {
// Selection.removeSelection(text);
// Selection.removeSelection(text)
//}
}
}
Expand Down

0 comments on commit fb070b6

Please sign in to comment.