Skip to content

Commit be0e168

Browse files
committed
Fixes response handling
1 parent 71e2a91 commit be0e168

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/checkQNetworkReplyErrorCodeUpdate.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ const fetchQNetworkReplyErrorCodeListFromGitHub = async ( github ) => {
5252
path: 'src/network/access/qnetworkreply.h',
5353
ref: 'dev'
5454
} );
55-
const commitId = response.sha;
55+
const commitId = response.data.sha;
5656

57-
const qNetworkReplyHeaderSource = decodeRepoContent( response );
57+
const qNetworkReplyHeaderSource = decodeRepoContent( response.data );
5858
const qNetworkReplyErrorCodes = extractQNetworkReplyErrorCodes( qNetworkReplyHeaderSource );
5959

6060
return { commitId, qNetworkReplyErrorCodes };
@@ -72,7 +72,6 @@ const fetchQNetworkReplyErrorCodeListFromQt = async () => {
7272

7373
const decodeRepoContent = ( response ) => {
7474
try {
75-
console.log( response );
7675
return Buffer.from( response.content, response.encoding ).toString( 'utf-8' );
7776
}
7877
catch( e ) {

0 commit comments

Comments
 (0)