fix lint
This commit is contained in:
parent
07deb14c4e
commit
06f5ea4384
|
|
@ -133,13 +133,11 @@ const BodyTab: React.FunctionComponent<{
|
|||
};
|
||||
|
||||
function statusClass(statusCode: number): string {
|
||||
if (statusCode < 300 || statusCode === 304) {
|
||||
if (statusCode < 300 || statusCode === 304)
|
||||
return 'green-circle';
|
||||
} else if (statusCode < 400) {
|
||||
if (statusCode < 400)
|
||||
return 'yellow-circle';
|
||||
} else {
|
||||
return 'red-circle';
|
||||
}
|
||||
}
|
||||
|
||||
function formatBody(body: string | null, contentType: string): string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue