Skip to content

Commit 6345245

Browse files
Natallia HarshunovaOrKoN
authored andcommitted
Fix order of details
1 parent 485b04e commit 6345245

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/formatters/consoleFormatter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,12 @@ export function formatIssue(
171171
...affectedResources.map(item => {
172172
const details = [];
173173
if (item.uid) details.push(`uid=${item.uid}`);
174-
if (item.data) details.push(`data=${JSON.stringify(item.data)}`);
175-
if (item.request)
174+
if (item.request) {
176175
details.push(
177176
(typeof item.request === 'number' ? `reqid=` : 'url=') + item.request,
178177
);
178+
}
179+
if (item.data) details.push(`data=${JSON.stringify(item.data)}`);
179180
return details.join(' ');
180181
}),
181182
);

0 commit comments

Comments
 (0)