Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 02f92fd

Browse files
committed
remove now unnecessary try/catch block from method call
1 parent 4c53eb4 commit 02f92fd

File tree

1 file changed

+1
-5
lines changed
  • sampleapp/src/main/java/io/matthewnelson/sampleapp/ui/fragments/home

1 file changed

+1
-5
lines changed

sampleapp/src/main/java/io/matthewnelson/sampleapp/ui/fragments/home/HomeFragment.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,7 @@ class HomeFragment : Fragment() {
106106
torServicePrefs = TorServicePrefs(inflater.context)
107107
hasDebugLogs = torServicePrefs.getBoolean(
108108
ServiceConsts.PrefKeyBoolean.HAS_DEBUG_LOGS,
109-
try {
110-
TorServiceController.getTorSettings().hasDebugLogs
111-
} catch (e: RuntimeException) {
112-
false
113-
}
109+
TorServiceController.getTorSettings().hasDebugLogs
114110
)
115111
return inflater.inflate(R.layout.fragment_home, container, false)
116112
}

0 commit comments

Comments
 (0)