Skip to content

Commit

Permalink
refactor: remove código desnecessário
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabrielcefetzada committed Mar 1, 2024
1 parent 008d975 commit 9701d5f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/bruno-electron/src/ipc/network/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1006,13 +1006,10 @@ const registerNetworkIpc = (mainWindow) => {
};

const getFileNameBasedOnContentTypeHeader = () => {
const contentType = getHeaderValue('content-type');
return `response.${getFileExtension(contentType)}`;
};

const getFormattedResponseIfJson = () => {
const contentType = getHeaderValue('content-type');

if (getFileExtension(contentType) === 'json') {
return Buffer.from(JSON.stringify(response.data, null, 2), 'utf8');
}
Expand Down

0 comments on commit 9701d5f

Please sign in to comment.