Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix type cast error

Neeraj Gupta06b143fec83c
diff --git a/pkg/model/remote.go b/pkg/model/remote.go
index 3fb0be9e41..4787744d68 100644
--- a/pkg/model/remote.go
+++ b/pkg/model/remote.go
@@ -69,7 +69,7 @@ func (r *RemoteFile) GetFileType() FileType {
if !ok {
panic("fileType not found in metadata")
}
- switch value.(int8) {
+ switch int8(value.(float64)) {
case 0:
return Image
case 1: