satellite/accounting: fix duplicate code-block
Change-Id: Ic6de7337a5ff9a2fec73aa3d8a74ba5b9076a8c4
This commit is contained in:
parent
ca263c05bb
commit
7d1031feda
@ -40,7 +40,8 @@ type ProjectLimitConfig struct {
|
||||
// ProjectLimitCache stores the values for both storage usage limit and bandwidth limit for
|
||||
// each project ID if they differ from the default limits.
|
||||
type ProjectLimitCache struct {
|
||||
projectLimitDB ProjectLimitDB
|
||||
projectLimitDB ProjectLimitDB
|
||||
|
||||
defaultMaxUsage memory.Size
|
||||
defaultMaxBandwidth memory.Size
|
||||
defaultMaxSegments int64
|
||||
@ -121,10 +122,6 @@ func (c *ProjectLimitCache) getProjectLimits(ctx context.Context, projectID uuid
|
||||
defaultSegments := c.defaultMaxSegments
|
||||
projectLimits.Segments = &defaultSegments
|
||||
}
|
||||
if projectLimits.Segments == nil {
|
||||
defaultSegments := c.defaultMaxSegments
|
||||
projectLimits.Segments = &defaultSegments
|
||||
}
|
||||
|
||||
return projectLimits, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user