-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
🎉 New FeatureA new featureA new feature
Description
✏️ Describe the feature
Now Save(path string, force bool) does not output an empty line at the end of the line.
But files should end with an empty line.
Lines 8 to 24 in fd914ba
| func (loginItems *LoginItems) Save(path string, force bool) error { | |
| if isExist, err := isExist(path); err != nil { | |
| return err | |
| } else if !force && isExist { | |
| return os.ErrExist | |
| } | |
| data, err := json.MarshalIndent(loginItems, "", " ") | |
| if err != nil { | |
| return err | |
| } | |
| if err := os.WriteFile(path, data, os.ModePerm); err != nil { | |
| return err | |
| } | |
| return nil | |
| } |
✔︎ Confirm these checks
- I searched the GitHub Issues or Discussions.
- I tried with the latest version.
- I agree to follow the Code of Conduct.
🗒️ Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🎉 New FeatureA new featureA new feature