Simplified code; shouldn't change results

This commit is contained in:
Fonata
2019-02-23 12:47:50 +01:00
parent 14c9254ed4
commit d03f8a2f09

View File

@@ -98,10 +98,6 @@ trait DatatypeTrait {
$firstRowDatatype = array_map(DatatypeEnum::class . '::getValidTypeFromSample', $firstRow);
if ($this->getMostFrequentDatatypeForColumn($firstRowDatatype) !== DatatypeEnum::TYPE_STRING){
return false;
}
return true;
return $this->getMostFrequentDatatypeForColumn($firstRowDatatype) === DatatypeEnum::TYPE_STRING;
}
}