Commit 4d3aa2f 1 parent 86f88e7 commit 4d3aa2f Copy full SHA for 4d3aa2f
File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,6 @@ impl Resource {
102
102
}
103
103
}
104
104
105
- pub fn has_operations ( & self ) -> bool {
106
- !self . operations . is_empty ( )
107
- }
108
-
109
105
pub ( crate ) fn referenced_components ( & self ) -> BTreeSet < & str > {
110
106
let mut res = BTreeSet :: new ( ) ;
111
107
Original file line number Diff line number Diff line change @@ -131,12 +131,10 @@ impl Generator<'_> {
131
131
) -> anyhow:: Result < ( ) > {
132
132
for resource in resources {
133
133
let referenced_components = resource. referenced_components ( ) ;
134
- if resource. has_operations ( ) {
135
- self . render_tpl (
136
- Some ( & resource. name ) ,
137
- context ! { resource, referenced_components } ,
138
- ) ?;
139
- }
134
+ self . render_tpl (
135
+ Some ( & resource. name ) ,
136
+ context ! { resource, referenced_components } ,
137
+ ) ?;
140
138
self . generate_api_resources_inner ( resource. subresources . values ( ) ) ?;
141
139
}
142
140
You can’t perform that action at this time.
0 commit comments