mirror of
https://github.com/restic/restic.git
synced 2026-05-16 23:25:24 +00:00
Merge pull request #5032 from dropbigfish/master
chore: fix some function name comments
This commit is contained in:
@@ -329,7 +329,7 @@ type SnapshotGroup struct {
|
||||
Snapshots []Snapshot `json:"snapshots"`
|
||||
}
|
||||
|
||||
// printSnapshotsJSON writes the JSON representation of list to stdout.
|
||||
// printSnapshotGroupJSON writes the JSON representation of list to stdout.
|
||||
func printSnapshotGroupJSON(stdout io.Writer, snGroups map[string]restic.Snapshots, grouped bool) error {
|
||||
if grouped {
|
||||
snapshotGroups := []SnapshotGroup{}
|
||||
|
||||
@@ -29,7 +29,7 @@ func calculateProgressInterval(show bool, json bool) time.Duration {
|
||||
return interval
|
||||
}
|
||||
|
||||
// newTerminalProgressMax returns a progress.Counter that prints to stdout or terminal if provided.
|
||||
// newGenericProgressMax returns a progress.Counter that prints to stdout or terminal if provided.
|
||||
func newGenericProgressMax(show bool, max uint64, description string, print func(status string, final bool)) *progress.Counter {
|
||||
if !show {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user