<commit_before>

function conditionalReturn(param){

	// https://sonarqube.com/issues#issues=AVn7orbraRqHwG08CTNc

	// return array or null
	return (param && [param]) || null;
}
<commit_msg>add more refs, comment<commit_after>

function conditionalReturn(param){

	// https://sonarqube.com/issues#issues=AVn7orbraRqHwG08CTNc
	// https://sonarqube.com/issues#issues=AVn7orcYaRqHwG08CTPt
	// https://sonarqube.com/issues#issues=AVn7ordraRqHwG08CTWQ

	/*

		if (param) {
			  return [param];
		}
		else {
			  return null;
		}


	*/

	return (param && [param]) || null;
}

{'fraction_non_alphanumeric': 0.14938488576449913, 'fraction_numerical': 0.0210896309314587, 'mean_word_length': 3.9565217391304346, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7153607', 'n_tokens_mistral': 254, 'n_tokens_neox': 227, 'n_words': 32}