mirror of
https://github.com/quexten/goldwarden.git
synced 2024-09-11 11:15:41 +03:00
Fix typos
This commit is contained in:
parent
6ac5754075
commit
7937fcf25c
@ -46,7 +46,7 @@ func (s *EncString) UnmarshalText(data []byte) error {
|
|||||||
|
|
||||||
i := bytes.IndexByte(data, '.')
|
i := bytes.IndexByte(data, '.')
|
||||||
if i < 0 {
|
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])
|
typStr := string(data[:i])
|
||||||
|
@ -16,7 +16,7 @@ const bufferSize = 8192 * 8
|
|||||||
var nativeEndian binary.ByteOrder
|
var nativeEndian binary.ByteOrder
|
||||||
|
|
||||||
func setupCommunication() {
|
func setupCommunication() {
|
||||||
// determine native endianess
|
// determine native endianness
|
||||||
var one int16 = 1
|
var one int16 = 1
|
||||||
b := (*byte)(unsafe.Pointer(&one))
|
b := (*byte)(unsafe.Pointer(&one))
|
||||||
if *b == 0 {
|
if *b == 0 {
|
||||||
|
@ -144,7 +144,7 @@ var setVaultURLCmd = &cobra.Command{
|
|||||||
var setURLsAutomaticallyCmd = &cobra.Command{
|
var setURLsAutomaticallyCmd = &cobra.Command{
|
||||||
Use: "set-server",
|
Use: "set-server",
|
||||||
Short: "Set the urls automatically",
|
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) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
return
|
return
|
||||||
|
@ -109,7 +109,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||||||
self.results_list.hide()
|
self.results_list.hide()
|
||||||
|
|
||||||
keycont = Gtk.EventControllerKey()
|
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
|
ctrl_pressed = state & Gdk.ModifierType.CONTROL_MASK > 0
|
||||||
alt_pressed = state & Gdk.ModifierType.ALT_MASK > 0
|
alt_pressed = state & Gdk.ModifierType.ALT_MASK > 0
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||||||
|
|
||||||
self.ssh_socket_path_group = Adw.PreferencesGroup()
|
self.ssh_socket_path_group = Adw.PreferencesGroup()
|
||||||
self.ssh_socket_path_group.set_title("SSH Socket Path")
|
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.preferences_page.add(self.ssh_socket_path_group)
|
||||||
|
|
||||||
self.ssh_socket_path_row = Adw.ActionRow()
|
self.ssh_socket_path_row = Adw.ActionRow()
|
||||||
|
Loading…
Reference in New Issue
Block a user