Change usage of functions
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 22 Feb 2021 08:54:51 +0000 (17:54 +0900)
committer연정현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jungh.yeon@samsung.com>
Tue, 23 Feb 2021 00:59:40 +0000 (09:59 +0900)
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/parcel/certinfo_parcelable.cc

index 4417fc1..e386ffe 100644 (file)
@@ -93,14 +93,7 @@ void CertInfoParcelable::ReadCertInfo(tizen_base::Parcel* parcel) {
 }
 
 bool CertInfoParcelable::WritePkgId(tizen_base::Parcel* parcel) {
-  if (pkgid_.empty()) {
-    // what is this for?
-    parcel->WriteBool(true);
-    return true;
-  }
-  // what is this for?
-  parcel->WriteBool(false);
-  WriteString(parcel, pkgid_.c_str());
+  parcel->WriteString(pkgid_);
 
   return true;
 }