mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #270] [MERGED] refine: Remove one clone on assets_prefix
#541
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigoden/dufs/pull/270
Author: @TieWay59
Created: 10/2/2023
Status: ✅ Merged
Merged: 10/5/2023
Merged by: @sigoden
Base:
main← Head:reduce-one-clone📝 Commits (1)
0f92f07refine: Remove one clone onassets_prefix📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/server.rs(+2 -2)📄 Description
This clone is not consist with the usage of
assets_prefixin followingcode and it's unnecessary.
ref:
if let Some(name) = req_path.strip_prefix(&self.assets_prefix) {.replace("__ASSETS_PREFIX__", &self.assets_prefix)Signed-off-by: TieWay59 tieway59@foxmail.com
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.