2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

Remove unneeded variable

This commit is contained in:
Aode (lion) 2022-03-29 11:09:23 -05:00
parent 99d042f36e
commit e25a4781a8

View file

@ -677,7 +677,6 @@ async fn launch<S: Store + Clone + 'static>(
// Create a new Multipart Form validator for internal imports
//
// This form is expecting a single array field, 'images' with at most 10 files in it
let validate_imports = !CONFIG.media.skip_validate_imports;
let manager2 = manager.clone();
let store2 = store.clone();
let import_form = Form::new()
@ -699,7 +698,7 @@ async fn launch<S: Store + Clone + 'static>(
.session(store)
.import(
filename,
validate_imports,
!CONFIG.media.skip_validate_imports,
CONFIG.media.enable_silent_video,
map_error::map_crate_error(stream),
)