summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-09-04 07:27:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-09-04 07:27:13 -0700
commit7c996aaf65a2e77281177bb8132b675e8bba133d (patch)
tree5e4f3469ec11ddaeb2e9b647558d6aeb5168f5da /lib.c
parentf81e83b591e18fae2efc27252a6e1717b35ecead (diff)
downloadtxr-7c996aaf65a2e77281177bb8132b675e8bba133d.tar.gz
txr-7c996aaf65a2e77281177bb8132b675e8bba133d.tar.bz2
txr-7c996aaf65a2e77281177bb8132b675e8bba133d.zip
seq_info: remove redundant car slot lookup.
* lib.c (seq_info): Due to a copy-paste error maybe_slot is being accidentally called here twice for the same slot. Removing.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 08e1d5ea..743e6ff2 100644
--- a/lib.c
+++ b/lib.c
@@ -294,8 +294,6 @@ seq_info_t seq_info(val obj)
ret.kind = SEQ_VECLIKE;
if (maybe_slot(obj, car_s))
ret.kind = SEQ_LISTLIKE;
- if (maybe_slot(obj, car_s))
- ret.kind = SEQ_LISTLIKE;
else
ret.kind = SEQ_NOTSEQ;
}