added return if the check is successful, skips unnecessary code execution
Merge pull request #22 from SlavaRa/ascompletion-asgenerator

Added return if the check is successful, skips unnecessary code execution.
build script