message: chore(js): clean up conditional rendering
diff: @@ -115,6 +115,7 @@ const Masthead = ({ navigation, ...mastheadProps }) => {
  };
  }, []);
  + if (navigation) {
  switch (typeof navigation) {
  case 'string':
  // eslint-disable-next-line
  @@ -123,11 +124,10 @@ const Masthead = ({ navigation, ...mastheadProps }) => {
  case 'object':
  mastheadData = navigation;
  break;
  - case false:
  - break;
  default:
  break;
  }
  + }
  return (
  <HeaderContainer
  @@ -138,23 +138,25 @@ const Masthead = ({ navigation, ...mastheadProps }) => {
  <div className={`${prefix}--masthead__l0`}>
  <Header aria-label="IBM" data-autoid={`${stablePrefix}--masthead`}>
  <SkipToContent />
  +
  + {navigation && (
  <HeaderMenuButton
  aria-label="Open menu"
  data-autoid={`${stablePrefix}--masthead__hamburger`}
  onClick={onClickSideNavExpand}
  isActive={isSideNavExpanded}
  />
  + )}
  <IbmLogo />
  <div className={`${prefix}--header__search ${hasPlatform}`}>
  - {navigation !== false ? (
  + {navigation && (
  <MastheadTopNav
  {...mastheadProps}
  navigation={mastheadData}
  />
  - ) : null}
  -
  + )}
  {mastheadProps.hasSearch && <MastheadSearch />}
  </div>
  @@ -176,17 +178,19 @@ const Masthead = ({ navigation, ...mastheadProps }) => {
  </HeaderGlobalBar>
  )}
  + {navigation && (
  <MastheadLeftNav
  navigation={mastheadData}
  isSideNavExpanded={isSideNavExpanded}
  />
  + )}
  </Header>
  </div>
  - {navigation !== false ? (
  + {navigation && (
  <div ref={mastheadL1Ref}>
  <MastheadL1 />
  </div>
  - ) : null}
  + )}
  </div>
  )}
  />
  