remove more dir creation

This commit is contained in:
Up 2024-05-07 22:42:59 +02:00
parent 40a1ce97e0
commit b6848f4739
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388

View File

@ -20,8 +20,6 @@ package account
import (
"crypto/rand"
"fmt"
"os"
"github.com/pagefaultgames/rogueserver/db"
)
@ -52,10 +50,5 @@ func Register(username, password string) error {
return fmt.Errorf("failed to add account record: %s", err)
}
err = os.MkdirAll(fmt.Sprintf("userdata/%x", uuid), 0755)
if err != nil && !os.IsExist(err) {
return fmt.Errorf(fmt.Sprintf("failed to create userdata folder: %s", err))
}
return nil
}