File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -311,16 +311,14 @@ class Visitor with EmotionAiDelegate {
311311
312312 // First check if visitorId exists in cache using config
313313 bool visitorExists =
314- await (config.visitorCacheImp? .visitorExists (visitorId) ??
315- Future .value (false ));
314+ await config.visitorCacheImp? .visitorExists (visitorId) ?? false ;
316315
317316 if (visitorExists) {
318317 idToLookup = visitorId;
319318 } else if (anonymousId != null ) {
320319 // If visitorId doesn't exist but we have anonymousId, check if it exists
321320 bool anonymousExists =
322- await (config.visitorCacheImp? .visitorExists (anonymousId! ) ??
323- Future .value (false ));
321+ await config.visitorCacheImp? .visitorExists (anonymousId! ) ?? false ;
324322 if (anonymousExists) {
325323 idToLookup = anonymousId! ;
326324 }
You can’t perform that action at this time.
0 commit comments