diff options
| author | Petter Rasmussen | 2016-02-02 23:04:51 +0100 |
|---|---|---|
| committer | Petter Rasmussen | 2016-02-02 23:04:51 +0100 |
| commit | 926a805a153bd99e113543b0a6d43807eb3e49f3 (patch) | |
| tree | eeac78346f83a9bc1183fe08eabdd47c9f267d8e | |
| parent | 4c317d16b6152bdd7972f91bf7ccb9ead8900c09 (diff) | |
| download | gdrive-926a805a153bd99e113543b0a6d43807eb3e49f3.tar.bz2 | |
Use same short var name as elsewhere
| -rw-r--r-- | drive/sync.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drive/sync.go b/drive/sync.go index 7054ab9..a2c0747 100644 --- a/drive/sync.go +++ b/drive/sync.go @@ -192,9 +192,9 @@ type syncFiles struct { func (self *syncFiles) filterMissingRemoteDirs() []*localFile { var files []*localFile - for _, f := range self.local { - if f.info.IsDir() && !self.existsRemote(f) { - files = append(files, f) + for _, lf := range self.local { + if lf.info.IsDir() && !self.existsRemote(lf) { + files = append(files, lf) } } @@ -216,9 +216,9 @@ func (self *syncFiles) filterMissingLocalDirs() []*remoteFile { func (self *syncFiles) filterMissingRemoteFiles() []*localFile { var files []*localFile - for _, f := range self.local { - if !f.info.IsDir() && !self.existsRemote(f) { - files = append(files, f) + for _, lf := range self.local { + if !lf.info.IsDir() && !self.existsRemote(lf) { + files = append(files, lf) } } |
