linter fix.
This commit is contained in:
parent
a8173ce02f
commit
e4fa855f7b
2 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue