Skip to content

Commit 5ee499b

Browse files
committed
detekt
1 parent 4c99ede commit 5ee499b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

WordPress/src/main/java/org/wordpress/android/support/logs/ui/LogDetailScreen.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import androidx.compose.ui.text.font.FontFamily
2525
import androidx.compose.ui.tooling.preview.Preview
2626
import androidx.compose.ui.unit.dp
2727
import androidx.compose.ui.unit.sp
28-
import androidx.core.text.HtmlCompat
2928
import org.wordpress.android.R
3029
import org.wordpress.android.support.logs.model.LogFile
3130
import org.wordpress.android.ui.compose.components.MainTopAppBar

WordPress/src/main/java/org/wordpress/android/support/logs/ui/LogsActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ class LogsActivity : AppCompatActivity() {
145145
}
146146
}
147147

148+
@Suppress("TooGenericExceptionCaught")
148149
private fun shareLogFile(cachedFile: File) {
149150
try {
150151
val uri = FileProvider.getUriForFile(

WordPress/src/main/java/org/wordpress/android/support/logs/ui/LogsViewModel.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ class LogsViewModel @Inject constructor(
107107

108108
_actionEvents.emit(ActionEvent.ShareLogFile(cachedFile))
109109
} catch (throwable: Throwable) {
110-
appLogWrapper.e(AppLog.T.SUPPORT, "Error preparing log file for sharing: ${throwable.stackTraceToString()}")
110+
appLogWrapper.e(
111+
AppLog.T.SUPPORT,
112+
"Error preparing log file for sharing: ${throwable.stackTraceToString()}"
113+
)
111114
_errorMessage.value = ErrorType.GENERAL
112115
}
113116
}

0 commit comments

Comments
 (0)