mirror of
https://github.com/restic/restic.git
synced 2026-11-28 15:26:48 +00:00
cmd/restic: Rename variable, no functional changes
This commit is contained in:
1 parent
fba912440d
commit
7d2699b429
10 files changed
+55
-55
No files matched your search
@@ -30,7 +30,7 @@ func (cmd CmdList) Execute(args []string) error {
|
||||
return fmt.Errorf("type not specified, Usage: %s", cmd.Usage())
|
||||
}
|
||||
|
||||
s, err := cmd.global.OpenRepository()
|
||||
repo, err := cmd.global.OpenRepository()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -38,12 +38,12 @@ func (cmd CmdList) Execute(args []string) error {
|
||||
var t backend.Type
|
||||
switch args[0] {
|
||||
case "blobs":
|
||||
err = s.LoadIndex()
|
||||
err = repo.LoadIndex()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for blob := range s.Index().Each(nil) {
|
||||
for blob := range repo.Index().Each(nil) {
|
||||
cmd.global.Printf("%s\n", blob.ID)
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ func (cmd CmdList) Execute(args []string) error {
|
||||
return errors.New("invalid type")
|
||||
}
|
||||
|
||||
for id := range s.List(t, nil) {
|
||||
for id := range repo.List(t, nil) {
|
||||
cmd.global.Printf("%s\n", id)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user