We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb6653 commit 4f25cf4Copy full SHA for 4f25cf4
packages/rs-drive/src/drive/contract/insert/add_description/v0/mod.rs
@@ -174,12 +174,11 @@ impl Drive {
174
Err(e) => return Err(e),
175
};
176
177
- let document_type_name;
178
- if full_description {
179
- document_type_name = "fullDescription".to_string();
+ let document_type_name = if full_description {
+ "fullDescription".to_string()
180
} else {
181
- document_type_name = "shortDescription".to_string();
182
- }
+ "shortDescription".to_string()
+ };
183
184
let document_id = Document::generate_document_id_v0(
185
&contract_id,
0 commit comments