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 db52521 commit 2bf63afCopy full SHA for 2bf63af
server/src/files.rs
@@ -36,9 +36,9 @@ impl FileStore {
36
37
pub fn init_from_config(config: &Config, fs_file_store: FileStore) -> FileStore {
38
let opts = &config.opts;
39
- if opts.s3_bucket.is_some() {
+ if let Some(bucket) = &opts.s3_bucket {
40
let config = S3Config {
41
- bucket: opts.s3_bucket.clone().unwrap(),
+ bucket: bucket.clone(),
42
endpoint: opts.s3_endpoint.clone(),
43
region: opts.s3_region.clone(),
44
path: opts.s3_path.clone().unwrap_or("uploads".to_string()),
0 commit comments