Fix files naming #24

Merged
blek merged 3 commits from fix-naming into 0.2-dev 2023-12-11 00:56:44 +01:00
Owner

This PR does:

  1. Fixes #23
  2. Refactors a bit of code in filed/src/files/lookup.rs for readibility
This PR does: 1. Fixes #23 2. Refactors a bit of code in `filed/src/files/lookup.rs` for readibility
blek added 2 commits 2023-12-09 13:15:46 +01:00
Author
Owner

Thanks! I will review this in a few days.

Thanks! I will review this in a few days.
blek reviewed 2023-12-10 16:46:06 +01:00
@ -111,2 +111,3 @@
LookupKind::ByName => {
if (&file).name.is_none() {
if let Some(name) = file.name.clone() {
log::debug!("Using {} as a custom file name", name);
Author
Owner

breaks dry? see line 130 as well. not quite sure if thats a bad thing

breaks dry? see line 130 as well. not quite sure if thats a bad thing
Author
Owner

@blek any comments on this? i am unsure if we really should stick with dry on this one

@blek any comments on this? i am unsure if we really should stick with dry on this one
blek reviewed 2023-12-10 16:53:06 +01:00
@ -113,0 +116,4 @@
format!(
"{}{}{}",
self.env.redis.prefix,
midfix,
Author
Owner

i'd say that if we're not sticking with dry then there is no need for that midfix variable. could've just hardcoded the -(name|hash)- thing to make it more apparent

i'd say that if we're not sticking with dry then there is no need for that `midfix` variable. could've just hardcoded the `-(name|hash)-` thing to make it more apparent
Author
Owner

yeah, i agree. that variable being assigned at the start of the code is pretty much just the useless clutter now

yeah, i agree. that variable being assigned at the start of the code is pretty much just the useless clutter now
blek added 1 commit 2023-12-10 17:43:04 +01:00
Author
Owner

this is so stupid. can we just merge this now?

this is so stupid. can we just merge this now?
Author
Owner

seems all good to me

seems all good to me
blek merged commit ea15e25fe2 into 0.2-dev 2023-12-11 00:56:44 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blek/bfile#24
No description provided.