Skip to content

Commit 8e17497

Browse files
committed
Remove check for set env vars os.environ() does that anyway
1 parent c6d986a commit 8e17497

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

bin/slugbuilder-hook.py

100644100755
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
SLUG_DIR = os.environ['SLUG_DIR']
1313
CONTROLLER_DIR = os.environ['CONTROLLER_DIR']
1414

15-
if SLUG_DIR is None || CONTROLLER_DIR is None:
16-
raise EnvironmentError("Environment variables not set.")
17-
1815
def parse_args():
1916
desc = """
2017
Process a git push by running it through the buildpack process
@@ -119,7 +116,7 @@ def exit_on_error(error_code, msg):
119116
try:
120117
release = yaml.safe_load(p.stdout.read())
121118
except YAMLError as e:
122-
exit_on_error(1, 'Invalid Release format: {0}'.format(e))
119+
exit_on_error(1, 'Invalid Release format: {0}'.format(e))
123120
# remove the container
124121
cmd = 'docker rm {container}'.format(**locals())
125122
p = subprocess.Popen(cmd, cwd=args.src, shell=True, stdout=subprocess.PIPE)

0 commit comments

Comments
 (0)