Skip to content

Commit 7eb1316

Browse files
committed
fix(server): Add return statement for bundle.getString(descriptionI18nKey)
1 parent 29d9e3c commit 7eb1316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/codeboyzhou/mcp/declarative/server/factory/AbstractMcpServerComponentFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ protected AbstractMcpServerComponentFactory(Injector injector) {
1818

1919
protected String getDescription(String descriptionI18nKey, String description) {
2020
if (!descriptionI18nKey.isBlank() && bundle.containsKey(descriptionI18nKey)) {
21-
bundle.getString(descriptionI18nKey);
21+
return bundle.getString(descriptionI18nKey);
2222
}
2323
if (!description.isBlank()) {
2424
return description;

0 commit comments

Comments
 (0)