diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..583cb6f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +charset = utf-8 +indent_style = tab +indent_size = 4 + +[.gitlab-ci.yml] +indent_style = space +indent_size = 2 diff --git a/README.md b/README.md index 02860dc..291166c 100644 --- a/README.md +++ b/README.md @@ -27,14 +27,14 @@ then `Authenticate` again forever until no errors are returned. for { // Pseudo-function to render the form and return the results of those forms // when the user confirms it. - outputs := renderAuthForm(svc.AuthenticateForm()) + outputs := renderAuthForm(svc.AuthenticateForm()) - if err := svc.Authenticate(outputs); err != nil { + if err := svc.Authenticate(outputs); err != nil { renderError(errors.Wrap(err, "Error while authenticating")) - continue // retry - } + continue // retry + } - break // success + break // success } ```