Skip to content

Commit

Permalink
修复 baseClass 字符串开头的逗号问题
Browse files Browse the repository at this point in the history
在 `ModelBuilder.cs` 文件中,`ModelBuilder` 类继承自 `ClassBuilder` 类。
在 `baseClass` 变量的处理逻辑中,新增了一行代码 `baseClass = baseClass?.TrimStart(',');`,用于移除 `baseClass` 字符串开头的逗号。
该修改确保了在返回 `baseClass` 之前,字符串不会以逗号开头。
  • Loading branch information
猿人易 committed Sep 4, 2024
1 parent 117ad4d commit fa1f7ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XCode/Code/ModelBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ protected override void Prepare()
baseClass += "IModel";
}

baseClass = baseClass?.TrimStart(',');

return baseClass;
}

Expand Down

0 comments on commit fa1f7ef

Please sign in to comment.