Simplified master's `updateOperation` function.
Simplified master's `updateOperation` function.

This replaces repetitive code by instead using a helper variable which
allows us to avoid branching. We can then also replace a `Try<bool>`
with a plain `bool` further simplifying the code.

Review: https://reviews.apache.org/r/65093/

reneploetz/mesos,andschwa/mesos,reneploetz/mesos,reneploetz/mesos,kaysoky/mesos,abudnik/mesos,gsantovena/mesos,chhsia0/mesos,kaysoky/mesos,gsantovena/mesos,dforsyth/mesos,chhsia0/mesos,Gilbert88/mesos,andschwa/mesos,jpeach/mesos,gsantovena/mesos,abudnik/mesos,dforsyth/mesos,reneploetz/mesos,Gilbert88/mesos,asamerh4/mesos,jpeach/mesos,reneploetz/mesos,andschwa/mesos,gsantovena/mesos,dforsyth/mesos,dforsyth/mesos,Gilbert88/mesos,jpeach/mesos,kaysoky/mesos,kaysoky/mesos,chhsia0/mesos,asamerh4/mesos,asamerh4/mesos,abudnik/mesos,Gilbert88/mesos,gsantovena/mesos,andschwa/mesos,Gilbert88/mesos,gsantovena/mesos,dforsyth/mesos,abudnik/mesos,Gilbert88/mesos,jpeach/mesos,dforsyth/mesos,jpeach/mesos,andschwa/mesos,chhsia0/mesos,abudnik/mesos,asamerh4/mesos,dforsyth/mesos,andschwa/mesos,asamerh4/mesos,kaysoky/mesos,chhsia0/mesos,gsantovena/mesos,kaysoky/mesos,chhsia0/mesos,jpeach/mesos,reneploetz/mesos,Gilbert88/mesos,andschwa/mesos,jpeach/mesos,asamerh4/mesos,asamerh4/mesos,chhsia0/mesos,reneploetz/mesos,abudnik/mesos,abudnik/mesos,kaysoky/mesos