Commit fd95b33 1 parent e2c48b4 commit fd95b33 Copy full SHA for fd95b33
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 @@ -134,12 +134,10 @@ impl Generator<'_> {
134
134
) -> anyhow:: Result < ( ) > {
135
135
for resource in resources {
136
136
let referenced_components = resource. referenced_components ( ) ;
137
- if resource. has_operations ( ) {
138
- self . render_tpl (
139
- Some ( & resource. name ) ,
140
- context ! { resource, referenced_components } ,
141
- ) ?;
142
- }
137
+ self . render_tpl (
138
+ Some ( & resource. name ) ,
139
+ context ! { resource, referenced_components } ,
140
+ ) ?;
143
141
self . generate_api_resources_inner ( resource. subresources . values ( ) ) ?;
144
142
}
145
143
You can’t perform that action at this time.
0 commit comments