Skip to content

Commit d16c85d

Browse files
committed
refactor: remove unused getByChecksum method and clean up code formatting
1 parent c5c86d4 commit d16c85d

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

app/cmd/upload/advice.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,6 @@ func (ii *immichIndex) addLocalAsset(ia *assets.Asset) (*assets.Asset, bool) {
104104
return ii.add(ia, true), true
105105
}
106106

107-
func (ii *immichIndex) getByChecksum(checksum string) *assets.Asset {
108-
if a, ok := ii.byChecksum.Load(checksum); ok {
109-
return a
110-
}
111-
return nil
112-
}
113-
114107
func (ii *immichIndex) getByID(id string) *assets.Asset {
115108
a, _ := ii.immichAssets.Load(id)
116109
return a

app/cmd/upload/run.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ func (upCmd *UpCmd) handleAsset(ctx context.Context, a *assets.Asset) error {
326326
}
327327

328328
switch advice.Advice {
329-
330329
case NotOnServer: // Upload and manage albums
331330
serverStatus, err := upCmd.uploadAsset(ctx, a)
332331
if err != nil {

0 commit comments

Comments
 (0)