Skip to content

Commit

Permalink
Update biome.json
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Sep 13, 2024
1 parent f525324 commit 8fd4172
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"formatter": {
"enabled": true,
"indentStyle": "space"
"useEditorconfig": true
},
"linter": {
"enabled": true,
Expand Down
15 changes: 7 additions & 8 deletions src/swagger-schema-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,14 @@ class SwaggerSchemaResolver {
) {
if (this.fileSystem.pathIsExist(pathToSwagger)) {
return this.getSwaggerSchemaByPath(pathToSwagger);
} else {
consola.info(`try to get swagger by URL "${urlToSwagger}"`);
return await this.request.download({
url: urlToSwagger,
disableStrictSSL,
authToken,
disableProxy,
});
}
consola.info(`try to get swagger by URL "${urlToSwagger}"`);
return await this.request.download({
url: urlToSwagger,
disableStrictSSL,
authToken,
disableProxy,
});
}

processSwaggerSchemaFile(file) {
Expand Down

0 comments on commit 8fd4172

Please sign in to comment.