Skip to content

Commit f70c293

Browse files
committed
replaced if statement with ternary
Signed-off-by: Paul Schultz <[email protected]>
1 parent 04dcf42 commit f70c293

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ def hello():
88
return "Hello World!"
99

1010
if __name__ == '__main__':
11-
port = int(os.environ.get('FLASK_PORT'))
12-
13-
if port == None:
14-
port = 8080
11+
port = int(os.environ.get('FLASK_PORT')) or 8080
1512

1613
app.run(port=port,host='0.0.0.0')

0 commit comments

Comments
 (0)