Skip to content

Commit 8fd4172

Browse files
committed
Update biome.json
Signed-off-by: Sora Morimoto <[email protected]>
1 parent f525324 commit 8fd4172

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"formatter": {
88
"enabled": true,
9-
"indentStyle": "space"
9+
"useEditorconfig": true
1010
},
1111
"linter": {
1212
"enabled": true,

src/swagger-schema-resolver.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,14 @@ class SwaggerSchemaResolver {
122122
) {
123123
if (this.fileSystem.pathIsExist(pathToSwagger)) {
124124
return this.getSwaggerSchemaByPath(pathToSwagger);
125-
} else {
126-
consola.info(`try to get swagger by URL "${urlToSwagger}"`);
127-
return await this.request.download({
128-
url: urlToSwagger,
129-
disableStrictSSL,
130-
authToken,
131-
disableProxy,
132-
});
133125
}
126+
consola.info(`try to get swagger by URL "${urlToSwagger}"`);
127+
return await this.request.download({
128+
url: urlToSwagger,
129+
disableStrictSSL,
130+
authToken,
131+
disableProxy,
132+
});
134133
}
135134

136135
processSwaggerSchemaFile(file) {

0 commit comments

Comments
 (0)