Skip to content

Commit

Permalink
Properly check for falsiness when testing for existing cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-marschke committed Dec 23, 2014
1 parent a77dd78 commit 7c0fbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/GUID.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
BOOMR.utils.pluginConfig(impl, config, "GUID", properties);
BOOMR.info("Initializing plugin GUID " + impl.cookieName , "GUID");

if( BOOMR.utils.getCookie(impl.cookieName) == null ) {
if(!BOOMR.utils.getCookie(impl.cookieName)) {
BOOMR.info("Could not find a cookie for " + impl.cookieName, "GUID");

var guid = impl.generate();
Expand Down

0 comments on commit 7c0fbb7

Please sign in to comment.