File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/main/kotlin/com/demonwav/mcdev/error Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -46,20 +46,17 @@ object AnonymousFeedback {
4646 }
4747
4848 private fun generateGitHubIssueBody (body : LinkedHashMap <String , String ?>): String {
49- val errorDescription = body[" error.description" ] ? : " "
50- body.remove(" error.description" )
49+ val errorDescription = body.remove(" error.description" ) ? : " "
5150
52- var errorMessage = body[ " error.message" ]
51+ var errorMessage = body.remove( " error.message" )
5352 if (errorMessage.isNullOrBlank()) {
5453 errorMessage = " no error"
5554 }
56- body.remove(" error.message" )
5755
58- var stackTrace = body[ " error.stacktrace" ]
56+ var stackTrace = body.remove( " error.stacktrace" )
5957 if (stackTrace.isNullOrEmpty()) {
6058 stackTrace = " no stacktrace"
6159 }
62- body.remove(" error.stacktrace" )
6360
6461 val sb = StringBuilder ()
6562
You can’t perform that action at this time.
0 commit comments