nit: use empty instead of size==0

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ia356e54d6058f3d78ef2d13b658dfd03ecf3097c
diff --git a/src/ipmiblob/blob_handler.cpp b/src/ipmiblob/blob_handler.cpp
index e9b82fd..3d14eff 100644
--- a/src/ipmiblob/blob_handler.cpp
+++ b/src/ipmiblob/blob_handler.cpp
@@ -50,7 +50,7 @@
               std::back_inserter(request));
     request.push_back(static_cast<std::uint8_t>(command));
 
-    if (payload.size() > 0)
+    if (!payload.empty())
     {
         /* Grow the vector to hold the bytes. */
         request.reserve(request.size() + sizeof(std::uint16_t));
@@ -77,7 +77,7 @@
     /* IPMI_CC was OK, and it returned no bytes, so let's be happy with that for
      * now.
      */
-    if (reply.size() == 0)
+    if (reply.empty())
     {
         return reply;
     }
@@ -154,8 +154,8 @@
     try
     {
         auto resp = sendIpmiPayload(BlobOEMCommands::bmcBlobEnumerate, payload);
-        return (resp.size() > 0) ? std::string(&resp[0], &resp[resp.size() - 1])
-                                 : "";
+        return (resp.empty()) ? ""
+                              : std::string(&resp[0], &resp[resp.size() - 1]);
     }
     catch (const BlobException& b)
     {