Skip to content

Commit

Permalink
fix: ensure correct storage type assignment in applyRule function
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Feb 27, 2025
1 parent a703c0e commit 00c6f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func applyRule(detail *types.StorageDetail) (*types.StorageDetail, error) {
}
newValue.Type = types.StorageType(rule.RewriteStorage)
newValue.Path = path.Join(rule.JoinPrefix, strings.TrimPrefix(currentPath, rule.TrimPrefix))
break
}
if newValue.Type == "" {
return detail, nil
Expand Down

0 comments on commit 00c6f08

Please sign in to comment.