1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

chore: makes save private (#4152)

This commit is contained in:
Amir Raminfar
2025-09-26 11:02:17 -07:00
committed by GitHub
parent 29f06eb00d
commit e8e1c3ea6b

View File

@@ -75,10 +75,10 @@ func UpdateFromReader(user auth.User, reader io.Reader) error {
return err
}
return Save(user, existingProfile)
return save(user, existingProfile)
}
func Save(user auth.User, profile Profile) error {
func save(user auth.User, profile Profile) error {
path := filepath.Join(dataPath, user.Username)
if _, err := os.Stat(path); os.IsNotExist(err) {
if err := os.Mkdir(path, 0755); err != nil {