Skip to content

feat/remove-linter-warnings#286

Open
egalvis27 wants to merge 2 commits intomainfrom
feat/remove-linter-errors
Open

feat/remove-linter-warnings#286
egalvis27 wants to merge 2 commits intomainfrom
feat/remove-linter-errors

Conversation

@egalvis27
Copy link
Copy Markdown

What is Changed / Added


  • Remove linter warnings

@egalvis27 egalvis27 requested a review from AlexisMora March 27, 2026 20:51
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
23.7% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Comment on lines +19 to +43
export function convertToReadableStream(readStream: Readable): ReadableStream<Uint8Array> {
return new ReadableStream<Uint8Array>({
start(controller) {
readStream.on('data', (chunk) => {
// Convertir el chunk a Uint8Array y pasarlo al controller
controller.enqueue(new Uint8Array(chunk));
});

readStream.on('end', () => {
// Señalar que la transmisión ha finalizado
controller.close();
});

readStream.on('error', (err) => {
// Señalar un error al controller
controller.error(err);
});
},
cancel() {
// Abortar la lectura del ReadStream de fs
readStream.destroy();
},
});
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments could be in english or deleted if you think they are not necessary

Comment on lines +115 to +132
const excludeNodeIds: string = excludeNodes.join(',');
const path = `${networkApiUrl}/buckets/${bucketId}/files/${fileId}`;
const queryParams = `?limit=${limit}&skip=${skip}&exclude=${excludeNodeIds}`;

const defaultOpts: AxiosRequestConfig = {
responseType: 'json',
url: path + queryParams,
};

return axios
.request<Mirror[]>({ ...defaultOpts, ...opts })
.then((res) => {
return res.data;
})
.catch((err) => {
throw err;
});
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add a todo to move this to the proper driveServerClient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants