From b6848f473911ab8cd7a62b0cc28ac07e9ac1b838 Mon Sep 17 00:00:00 2001 From: Up Date: Tue, 7 May 2024 22:42:59 +0200 Subject: [PATCH] remove more dir creation --- api/account/register.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/account/register.go b/api/account/register.go index bc63855..f2ed611 100644 --- a/api/account/register.go +++ b/api/account/register.go @@ -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 }