sanity check

This commit is contained in:
Kamil Dziedzic
2017-08-21 18:21:50 +02:00
parent 6a65d5b7a0
commit c503ffa871

View File

@@ -98,6 +98,9 @@ func (f *Fingerprint) Fingerprint(doc proto.SystemProfile) (string, error) {
collection = ns[1]
}
default:
if query.Len() == 0 {
break
}
// first key is operation type
op = query.D[0].Name
collection, _ = query.D[0].Value.(string)