mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
linter fix.
This commit is contained in:
parent
a8173ce02f
commit
e4fa855f7b
@ -35,9 +35,7 @@ func DisplayOpen(display string) error {
|
||||
displayUnsafe := C.CString(display)
|
||||
defer C.free(unsafe.Pointer(displayUnsafe))
|
||||
|
||||
var err C.int
|
||||
err = C.XDisplayOpen(displayUnsafe)
|
||||
|
||||
err := C.XDisplayOpen(displayUnsafe)
|
||||
if int(err) == 1 {
|
||||
return fmt.Errorf("Could not open display %s.", display)
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ func (session *SessionCtx) SetConnected(connected bool) {
|
||||
session.socket = nil
|
||||
|
||||
// TODO: Refactor.
|
||||
session.manager.Destroy(session.id)
|
||||
_ = session.manager.Destroy(session.id)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user