Skip to content

Commit

Permalink
Remove extraneous length check
Browse files Browse the repository at this point in the history
  • Loading branch information
abegong committed Mar 9, 2018
1 parent 16e791c commit 8555a91
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions great_expectations/dataset/pandas_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,7 @@ def expect_column_to_exist(self, column,
def expect_table_columns_to_match_ordered_list(self, column_list,
result_format=None, include_config=False, catch_exceptions=None, meta=None):

if len(list(self.columns)) != len(column_list):
return {
"success" : False
}

if list(self.columns) == column_list:
if list(self.columns) == list(column_list):
return {
"success" : True
}
Expand Down

0 comments on commit 8555a91

Please sign in to comment.