I have the following Boolean assignemnt:
Contact currentContact = new Contact();
currentContact.Is_Manager__c = UserWrapper.isManager() != null ? UserWrapper.isManager() : false;
UserWrapper class has isManager() method that can return either True, False or Null. CurrentContact.Is_Manager__c should either be true or false, not null.
I'm getting "Remove the unnecessary Boolean literal" warning in Sonarqube due to the 'false' in the ternary operator. Is this expected?