From 7937fcf25c90b06e93de8e0784c9538d921faeca Mon Sep 17 00:00:00 2001 From: Muhammad Talal Anwar Date: Fri, 5 Apr 2024 21:06:23 +0200 Subject: [PATCH 1/2] Fix typos --- agent/bitwarden/crypto/encstring.go | 2 +- browserbiometrics/communication.go | 2 +- cmd/config.go | 2 +- gui/src/gui/quickaccess.py | 2 +- gui/src/gui/ssh.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/agent/bitwarden/crypto/encstring.go b/agent/bitwarden/crypto/encstring.go index 18d8da3..7cdf829 100644 --- a/agent/bitwarden/crypto/encstring.go +++ b/agent/bitwarden/crypto/encstring.go @@ -46,7 +46,7 @@ func (s *EncString) UnmarshalText(data []byte) error { i := bytes.IndexByte(data, '.') if i < 0 { - return errors.New("invalid cipher string format, missign type. total length: " + strconv.Itoa(len(data))) + return errors.New("invalid cipher string format, missing type. total length: " + strconv.Itoa(len(data))) } typStr := string(data[:i]) diff --git a/browserbiometrics/communication.go b/browserbiometrics/communication.go index 301e3f7..f615054 100644 --- a/browserbiometrics/communication.go +++ b/browserbiometrics/communication.go @@ -16,7 +16,7 @@ const bufferSize = 8192 * 8 var nativeEndian binary.ByteOrder func setupCommunication() { - // determine native endianess + // determine native endianness var one int16 = 1 b := (*byte)(unsafe.Pointer(&one)) if *b == 0 { diff --git a/cmd/config.go b/cmd/config.go index a54ed02..712194c 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -144,7 +144,7 @@ var setVaultURLCmd = &cobra.Command{ var setURLsAutomaticallyCmd = &cobra.Command{ Use: "set-server", Short: "Set the urls automatically", - Long: `Set the api/identity/vault/notification urls automaticall from a base url.`, + Long: `Set the api/identity/vault/notification urls automatically from a base url.`, Run: func(cmd *cobra.Command, args []string) { if len(args) == 0 { return diff --git a/gui/src/gui/quickaccess.py b/gui/src/gui/quickaccess.py index 3621836..50c5f4d 100644 --- a/gui/src/gui/quickaccess.py +++ b/gui/src/gui/quickaccess.py @@ -109,7 +109,7 @@ class MainWindow(Gtk.ApplicationWindow): self.results_list.hide() keycont = Gtk.EventControllerKey() - def handle_keypress(cotroller, keyval, keycode, state, user_data): + def handle_keypress(controller, keyval, keycode, state, user_data): ctrl_pressed = state & Gdk.ModifierType.CONTROL_MASK > 0 alt_pressed = state & Gdk.ModifierType.ALT_MASK > 0 diff --git a/gui/src/gui/ssh.py b/gui/src/gui/ssh.py index 1f1eafd..a76a3ac 100644 --- a/gui/src/gui/ssh.py +++ b/gui/src/gui/ssh.py @@ -47,7 +47,7 @@ class MainWindow(Gtk.ApplicationWindow): self.ssh_socket_path_group = Adw.PreferencesGroup() self.ssh_socket_path_group.set_title("SSH Socket Path") - self.ssh_socket_path_group.set_description("Add this to your your enviorment variables") + self.ssh_socket_path_group.set_description("Add this to your environment variables") self.preferences_page.add(self.ssh_socket_path_group) self.ssh_socket_path_row = Adw.ActionRow() From d593ede6d4cab69bb0dca140f8ca8f82eebc8017 Mon Sep 17 00:00:00 2001 From: Muhammad Talal Anwar Date: Fri, 5 Apr 2024 21:07:11 +0200 Subject: [PATCH 2/2] Fix variable name --- gui/src/gui/quickaccess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/gui/quickaccess.py b/gui/src/gui/quickaccess.py index 50c5f4d..f6bc976 100644 --- a/gui/src/gui/quickaccess.py +++ b/gui/src/gui/quickaccess.py @@ -155,7 +155,7 @@ class MainWindow(Gtk.ApplicationWindow): if ctrl_pressed and alt_pressed: Gtk.show_uri(None, self.results_list.get_selected_row().uri, Gdk.CURRENT_TIME) elif keyval == 116: - totp_code = totp.totp(self.resuts_list.get_selected_row().totp) + totp_code = totp.totp(self.results_list.get_selected_row().totp) if ctrl_pressed and not alt_pressed: set_clipboard(totp_code) if ctrl_pressed and alt_pressed: