Mercurial Hosting > luan
comparison src/luan/modules/lucene/LuceneIndex.java @ 1530:447b7ef9197f
minor fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 28 Jul 2020 22:12:36 -0600 |
parents | e6d808f40bbc |
children | 060ff7695317 |
comparison
equal
deleted
inserted
replaced
1529:e6d808f40bbc | 1530:447b7ef9197f |
---|---|
879 Object value = entry.getValue(); | 879 Object value = entry.getValue(); |
880 if( value instanceof LuanTable ) { | 880 if( value instanceof LuanTable ) { |
881 LuanTable v = (LuanTable)value; | 881 LuanTable v = (LuanTable)value; |
882 if( !v.isList() ) | 882 if( !v.isList() ) |
883 logger.error("not list"); | 883 logger.error("not list"); |
884 if( v.isEmpty() ) { | 884 List list = v.asList(); |
885 if( list.isEmpty() ) { | |
885 iter.remove(); | 886 iter.remove(); |
887 } else if( list.size() == 1 ) { | |
888 entry.setValue(list.get(0)); | |
886 } else { | 889 } else { |
887 entry.setValue(v.asList()); | 890 entry.setValue(list); |
888 } | 891 } |
889 } | 892 } |
890 } | 893 } |
891 return map; | 894 return map; |
892 } | 895 } |