Connection.ReadOp can assume Convert will not fail.

geesefs-0-30-9
Aaron Jacobs 2015-05-05 10:33:47 +10:00
parent 025ddafef1
commit 64a7c6f973
1 changed files with 1 additions and 7 deletions

View File

@ -127,7 +127,7 @@ func (c *Connection) ReadOp() (op fuseops.Op, err error) {
continue
}
// Convert it, if possible.
// Convert it.
logForOp := func(calldepth int, format string, v ...interface{}) {
c.log(opID, calldepth+1, format, v...)
}
@ -135,12 +135,6 @@ func (c *Connection) ReadOp() (op fuseops.Op, err error) {
finished := func(err error) { c.finishOp() }
op = fuseops.Convert(c.parentCtx, bfReq, logForOp, finished)
if op == nil {
c.log(opID, 1, "-> ENOSYS: %v", bfReq)
bfReq.RespondError(ENOSYS)
continue
}
c.beginOp()
return
}