check if both are null

This commit is contained in:
Girish Ramakrishnan
2016-06-07 15:36:45 -07:00
parent 0cd4e4f03a
commit 3236ce9cd6

View File

@@ -350,6 +350,8 @@ function purchase(appStoreId, callback) {
}
function downloadManifest(appStoreId, manifest, callback) {
if (!appStoreId && !manifest) return callback(new AppsError(AppsError.BAD_FIELD, 'Neither manifest nor appStoreId provided'));
if (!appStoreId) return callback(null, '', manifest);
var parts = appStoreId.split('@');