linter fix.

This commit is contained in:
Miroslav Šedivý 2020-11-04 00:41:04 +01:00
parent a8173ce02f
commit e4fa855f7b
2 changed files with 2 additions and 4 deletions

View File

@ -35,9 +35,7 @@ func DisplayOpen(display string) error {
displayUnsafe := C.CString(display) displayUnsafe := C.CString(display)
defer C.free(unsafe.Pointer(displayUnsafe)) defer C.free(unsafe.Pointer(displayUnsafe))
var err C.int err := C.XDisplayOpen(displayUnsafe)
err = C.XDisplayOpen(displayUnsafe)
if int(err) == 1 { if int(err) == 1 {
return fmt.Errorf("Could not open display %s.", display) return fmt.Errorf("Could not open display %s.", display)
} }

View File

@ -79,7 +79,7 @@ func (session *SessionCtx) SetConnected(connected bool) {
session.socket = nil session.socket = nil
// TODO: Refactor. // TODO: Refactor.
session.manager.Destroy(session.id) _ = session.manager.Destroy(session.id)
} }
} }