Skip to content

Commit 671161d

Browse files
committed
style: Improve formatting and style
1 parent 8701eb2 commit 671161d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scrapegraph-js/src/markdownify.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import handleError from './utils/handleError.js';
99
* @returns {Promise<string>} A promise that resolves to the markdown representation of the webpage.
1010
* @throws {Error} Throws an error if the HTTP request fails.
1111
*/
12-
export async function markdownify(apiKey, url){
12+
export async function markdownify(apiKey, url) {
1313
const endpoint = 'https://api.scrapegraphai.com/v1/markdownify';
1414
const headers = {
1515
'accept': 'application/json',
@@ -24,7 +24,7 @@ export async function markdownify(apiKey, url){
2424
const response = await axios.post(endpoint, payload, { headers });
2525
return response.data;
2626
} catch (error) {
27-
handleError(error)
27+
handleError(error);
2828
}
2929
}
3030

@@ -36,7 +36,7 @@ export async function markdownify(apiKey, url){
3636
* @returns {Promise<string>} A promise that resolves with details about the status or outcome of the specified request.
3737
* @throws {Error} Throws an error if the HTTP request fails.
3838
*/
39-
export async function getMarkdownifyRequest(apiKey, requestId){
39+
export async function getMarkdownifyRequest(apiKey, requestId) {
4040
const endpoint = 'https://api.scrapegraphai.com/v1/markdownify/' + requestId;
4141
const headers = {
4242
'accept': 'application/json',
@@ -47,6 +47,6 @@ export async function getMarkdownifyRequest(apiKey, requestId){
4747
const response = await axios.get(endpoint, { headers });
4848
return response.data;
4949
} catch (error) {
50-
handleError(error)
50+
handleError(error);
5151
}
52-
}
52+
}

0 commit comments

Comments
 (0)