Skip to content

Commit 8db094d

Browse files
authored
Merge pull request #29 from koic/suppress_redundant_attributes_in_resources
Suppress redundant attributes in Resources
2 parents 5ae8679 + 2f354a8 commit 8db094d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mcp/resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def to_h
1818
name: @name,
1919
description: @description,
2020
mimeType: @mime_type,
21-
}
21+
}.compact
2222
end
2323
end
2424
end

0 commit comments

Comments
 (0)