Skip to content

Commit c5cf7b5

Browse files
perf: compatible default tags is empty
1 parent 7dc117a commit c5cf7b5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/long-turtles-greet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'openapi-ts-request': patch
3+
---
4+
5+
perf: compatible default tags is empty

src/generator/serviceGenarator.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ export default class ServiceGenerator {
185185

186186
// 这里判断tags
187187
tags.forEach((tag) => {
188+
if (!tag) {
189+
return;
190+
}
191+
188192
const tagLowerCase = tag.toLowerCase();
189193

190194
if (priorityRule === PriorityRule.include) {

0 commit comments

Comments
 (0)