Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove unused param

Neeraj Gupta920bd0c7df47
diff --git a/pkg/collections.go b/pkg/collections.go
index 943d7e084c..11395bc5a9 100644
--- a/pkg/collections.go
+++ b/pkg/collections.go
@@ -11,7 +11,7 @@ import (
"strconv"
)
-func (c *ClICtrl) fetchRemoteCollections(ctx context.Context, info model.Account) error {
+func (c *ClICtrl) fetchRemoteCollections(ctx context.Context) error {
lastSyncTime, err2 := c.GetInt64ConfigValue(ctx, model.CollectionsSyncKey)
if err2 != nil {
return err2
@@ -48,7 +48,7 @@ func (c *ClICtrl) fetchRemoteCollections(ctx context.Context, info model.Account
return nil
}
-func (c *ClICtrl) fetchRemoteFiles(ctx context.Context, info model.Account) error {
+func (c *ClICtrl) fetchRemoteFiles(ctx context.Context) error {
albums, err := c.getRemoteAlbums(ctx)
if err != nil {
return err
diff --git a/pkg/remote_sync.go b/pkg/remote_sync.go
index c31a44c46d..759b4661b6 100644
--- a/pkg/remote_sync.go
+++ b/pkg/remote_sync.go
@@ -20,11 +20,11 @@ func (c *ClICtrl) SyncAccount(account model.Account) error {
return err
}
c.Client.AddToken(account.AccountKey(), base64.URLEncoding.EncodeToString(secretInfo.Token))
- err = c.fetchRemoteCollections(ctx, account)
+ err = c.fetchRemoteCollections(ctx)
if err != nil {
log.Printf("Error fetching collections: %s", err)
}
- err = c.fetchRemoteFiles(ctx, account)
+ err = c.fetchRemoteFiles(ctx)
if err != nil {
log.Printf("Error fetching files: %s", err)
}