minor code cleanup

Change-Id: Ia2c59be8038092e8322f8d02c472458dfb76bae4
Reviewed-on: http://review.couchbase.org/38108
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>