mirror of
https://github.com/restic/restic.git
synced 2025-10-27 12:18:35 +00:00
Renames to fix clashes with reserved words.
This commit is contained in:
@@ -419,10 +419,10 @@ func (be *Backend) List(ctx context.Context, t backend.FileType, fn func(backend
|
||||
prefix += "/"
|
||||
}
|
||||
|
||||
max := int32(be.listMaxItems)
|
||||
maxI := int32(be.listMaxItems)
|
||||
|
||||
opts := &azContainer.ListBlobsFlatOptions{
|
||||
MaxResults: &max,
|
||||
MaxResults: &maxI,
|
||||
Prefix: &prefix,
|
||||
}
|
||||
lister := be.container.NewListBlobsFlatPager(opts)
|
||||
|
||||
@@ -47,8 +47,8 @@ func SplitShellStrings(data string) (strs []string, err error) {
|
||||
|
||||
// derived from strings.SplitFunc
|
||||
fieldStart := -1 // Set to -1 when looking for start of field.
|
||||
for i, rune := range data {
|
||||
if s.isSplitChar(rune) {
|
||||
for i, r := range data {
|
||||
if s.isSplitChar(r) {
|
||||
if fieldStart >= 0 {
|
||||
strs = append(strs, data[fieldStart:i])
|
||||
fieldStart = -1
|
||||
|
||||
Reference in New Issue
Block a user