Skip to content

Commit ca1296e

Browse files
joevanloonbohendo
authored andcommitted
Fixed linter issues
1 parent 4b4de6d commit ca1296e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

crytic_compile/platform/solc.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,11 @@ def _run_solcs_path(
627627
)
628628
break
629629
except InvalidCompilation as ic:
630-
compilation_errors.append(solc_bin + ': ' + ic.args[0])
631-
pass
630+
compilation_errors.append(solc_bin + ": " + ic.args[0])
632631

633632
if not targets_json:
634633
raise InvalidCompilation(
635-
"Invalid solc compilation, none of the solc versions provided worked:\n" + '\n'.join(compilation_errors)
634+
"Invalid solc compilation, none of the solc versions provided worked:\n" + "\n".join(compilation_errors)
636635
)
637636

638637
return targets_json
@@ -715,12 +714,11 @@ def _run_solcs_env(
715714
)
716715
break
717716
except InvalidCompilation as ic:
718-
compilation_errors.append(version_env + ': ' + ic.args[0])
719-
pass
717+
compilation_errors.append(version_env + ": " + ic.args[0])
720718

721719
if not targets_json:
722720
raise InvalidCompilation(
723-
"Invalid solc compilation, none of the solc versions provided worked:\n" + '\n'.join(compilation_errors)
721+
"Invalid solc compilation, none of the solc versions provided worked:\n" + "\n".join(compilation_errors)
724722
)
725723

726724
return targets_json

0 commit comments

Comments
 (0)