Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 authored and github-actions[bot] committed Jan 19, 2024
1 parent 03b8c90 commit 1c0a35c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ import { useState } from 'react';
type ThreadDumpMessage = {
stringifiedThreadInfo: string;
threadName: string;
}

};

const JobManagerLogsTab = (props: JobProps) => {
const { jobDetail } = props;
Expand Down Expand Up @@ -69,10 +68,11 @@ const JobManagerLogsTab = (props: JobProps) => {
if (!ur.data) {
return;
} else {
const threadInfos = JSON.parse(ur.data) && JSON.parse(ur.data)['threadInfos'] as ThreadDumpMessage[];
const threadInfos =
JSON.parse(ur.data) && (JSON.parse(ur.data)['threadInfos'] as ThreadDumpMessage[]);
if (!threadInfos) {
return 'No Log';
}else if (threadInfos && threadInfos.length === 0) {
} else if (threadInfos && threadInfos.length === 0) {
return 'No Thread Info';
}
return threadInfos.map((x: ThreadDumpMessage) => x.stringifiedThreadInfo).join('');
Expand Down

0 comments on commit 1c0a35c

Please sign in to comment.