[gnome-ostree] Revert "argparse: Empty args are empty"
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] Revert "argparse: Empty args are empty"
- Date: Wed, 4 Sep 2013 21:54:27 +0000 (UTC)
commit f1faa0d52b1b2f7723222769d7bef82036dbf2bb
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Sep 1 11:38:12 2013 -0400
Revert "argparse: Empty args are empty"
This reverts commit 658cf07fdeb743a6f78ba8d59efb60116fe473e2.
This breaks `ostbuild make`.
src/js/argparse.js | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/js/argparse.js b/src/js/argparse.js
index 78ebfb1..f94418e 100644
--- a/src/js/argparse.js
+++ b/src/js/argparse.js
@@ -108,9 +108,6 @@ const ArgumentParser = new Lang.Class({
},
parse: function(argv) {
- if (!argv || argv.length == 0)
- return {};
-
let result = {};
let rest = [];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]