Checking slot id in System get doesn't make sense

This commit is contained in:
Pancakes 2024-06-05 00:02:25 -04:00
parent 81b316f4c9
commit 50d93a737f
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

View File

@ -29,10 +29,6 @@ import (
func Get(uuid []byte, datatype, slot int) (any, error) {
switch datatype {
case 0: // System
if slot != 0 {
return nil, fmt.Errorf("invalid slot id for system data")
}
system, err := db.ReadSystemSaveData(uuid)
if err != nil {
return nil, err