mirror of
https://github.com/restic/restic.git
synced 2026-10-18 15:38:12 +00:00
deduplicate string formatting of snapshot metadata
This removes the spurious ")" bracket at the end and normalizes the metadata format used by the `ls` command.
This commit is contained in:
1 parent
045aa64558
commit
33b7c84a7a
5 files changed
+6
-6
No files matched your search
@@ -96,7 +96,7 @@ func ForAllSnapshots(ctx context.Context, be Lister, loader LoaderUnpacked, excl
|
||||
}
|
||||
|
||||
func (sn Snapshot) String() string {
|
||||
return fmt.Sprintf("<Snapshot %s of %v at %s by %s@%s>",
|
||||
return fmt.Sprintf("snapshot %s of %v at %s by %s@%s",
|
||||
sn.id.Str(), sn.Paths, sn.Time, sn.Username, sn.Hostname)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user