chore(ci): remove ineffective omitempty tags (#5037)

This commit is contained in:
Julio López
2025-12-01 20:54:05 -08:00
committed by GitHub
parent c8c4615595
commit d81ac7bb7f
4 changed files with 9 additions and 9 deletions

View File

@@ -63,10 +63,10 @@ func (f *ContentFormat) SupportsPasswordChange() bool {
// MutableParameters represents parameters of the content manager that can be mutated after the repository
// is created.
type MutableParameters struct {
Version Version `json:"version,omitempty"` // version number, must be "1", "2" or "3"
MaxPackSize int `json:"maxPackSize,omitempty"` // maximum size of a pack object
IndexVersion int `json:"indexVersion,omitempty"` // force particular index format version (1,2,..)
EpochParameters epoch.Parameters `json:"epochParameters,omitempty"` // epoch manager parameters
Version Version `json:"version,omitempty"` // version number, must be "1", "2" or "3"
MaxPackSize int `json:"maxPackSize,omitempty"` // maximum size of a pack object
IndexVersion int `json:"indexVersion,omitempty"` // force particular index format version (1,2,..)
EpochParameters epoch.Parameters `json:"epochParameters"` // epoch manager parameters
}
// Validate validates the parameters.

View File

@@ -13,7 +13,7 @@
// repository.
type UpgradeLockIntent struct {
OwnerID string `json:"ownerID,omitempty"`
CreationTime time.Time `json:"creationTime,omitempty"`
CreationTime time.Time `json:"creationTime"`
AdvanceNoticeDuration time.Duration `json:"advanceNoticeDuration,omitempty"`
IODrainTimeout time.Duration `json:"ioDrainTimeout,omitempty"`
StatusPollInterval time.Duration `json:"statusPollInterval,omitempty"`

View File

@@ -4,7 +4,7 @@
type IndirectObjectEntry struct {
Start int64 `json:"s,omitempty"`
Length int64 `json:"l,omitempty"`
Object ID `json:"o,omitempty"`
Object ID `json:"o"`
}
func (i *IndirectObjectEntry) endOffset() int64 {

View File

@@ -126,7 +126,7 @@ type DirEntry struct {
ModTime fs.UTCTimestamp `json:"mtime,omitempty"`
UserID uint32 `json:"uid,omitempty"`
GroupID uint32 `json:"gid,omitempty"`
ObjectID object.ID `json:"obj,omitempty"`
ObjectID object.ID `json:"obj"`
DirSummary *fs.DirectorySummary `json:"summ,omitempty"`
}
@@ -187,8 +187,8 @@ func (m *Manifest) Clone() *Manifest {
type StorageStats struct {
// amount of new unique data in this snapshot that wasn't there before.
// note that this depends on ordering of snapshots.
NewData StorageUsageDetails `json:"newData,omitempty"`
RunningTotal StorageUsageDetails `json:"runningTotal,omitempty"`
NewData StorageUsageDetails `json:"newData"`
RunningTotal StorageUsageDetails `json:"runningTotal"`
}
// StorageUsageDetails provides details about snapshot storage usage.