and she never dealt with indentation issues ever again

This commit is contained in:
ari melody 2025-04-29 23:42:08 +01:00
parent 23a02617f9
commit 37fa1f4fa8
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
2 changed files with 9 additions and 2 deletions

7
.editorconfig Normal file
View file

@ -0,0 +1,7 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4

View file

@ -223,7 +223,7 @@ func main() {
code := controller.GenerateTOTP(totp.Secret, 0)
fmt.Printf("%s\n", code)
return
case "cleanTOTP":
err := controller.DeleteUnconfirmedTOTPs(app.DB)
if err != nil {
@ -346,7 +346,7 @@ func main() {
if !strings.HasPrefix(res, "y") {
return
}
err = controller.DeleteAccount(app.DB, account.ID)
if err != nil {
fmt.Fprintf(os.Stderr, "FATAL: Failed to delete account: %v\n", err)