Skip to content

Commit

Permalink
use return
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed May 11, 2024
1 parent 3257cc8 commit aac204b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions library_generation/test/utilities_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ def test_mv_src_files_gapic_main_succeeds(self):
os.environ["folder_name"] = "example"
util.sh_util("mv_src_files gapic main destination")
self.assertTrue(
os.path.isfile(
"destination/gapic-example/src/main/java/example_main.txt"
)
os.path.isfile("destination/gapic-example/src/main/java/example_main.txt")
)
shutil.rmtree("destination/gapic-example")
os.chdir(previous_dir)
Expand All @@ -132,9 +130,7 @@ def test_mv_src_files_gapic_test_succeeds(self):
os.environ["folder_name"] = "example"
util.sh_util("mv_src_files gapic test destination")
self.assertTrue(
os.path.isfile(
"destination/gapic-example/src/test/java/example_test.txt"
)
os.path.isfile("destination/gapic-example/src/test/java/example_test.txt")
)
shutil.rmtree("destination/gapic-example")
os.chdir(previous_dir)
Expand Down
2 changes: 1 addition & 1 deletion library_generation/utils/utilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ mv_src_files() {
fi

if [ "${category}" == "samples" ]; then
exit
return
fi

mkdir -p "${destination_path}/${folder_suffix}"
Expand Down

0 comments on commit aac204b

Please sign in to comment.