Skip to content

Commit

Permalink
Simplify function
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sol committed Mar 4, 2024
1 parent b2f952b commit 4b64f2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/fmu/sumo/sim2sumo/sim2sumo.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,7 @@ def is_datafile(results: PosixPath) -> bool:
bool: true if correct suffix
"""
valid = [".afi", ".DATA", ".in"]
check = False
if results.suffix in valid:
check = True
return check
return results.suffix in valid


def find_datafiles(seedpoint, simconfig):
Expand Down

0 comments on commit 4b64f2c

Please sign in to comment.