Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Oct 25, 2024
1 parent e51631b commit d50d101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mbuild/tests/test_compound.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def test_load_protein(self):
)
def test_save_simple(self, ch3, extension):

Check notice

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns Note test

Mixing implicit and explicit returns may indicate an error as implicit returns always return None.
# Can't save gsd files with Windows
if extension == ".gsd" as not has_hoomd:
if extension == ".gsd" and not has_hoomd:
return True
outfile = "methyl_out" + extension
ch3.save(filename=outfile)
Expand Down

0 comments on commit d50d101

Please sign in to comment.