mirror of https://github.com/docker/docs.git
Making condition simple
- removed checking for undefined, not necessary
This commit is contained in:
parent
955a43a14d
commit
4b708f2275
|
@ -107,7 +107,7 @@ var ContainerDetailsSubheader = React.createClass({
|
|||
return envs;
|
||||
}, {}).SHELL;
|
||||
|
||||
if(typeof shell === 'undefined') {
|
||||
if(!shell) {
|
||||
shell = 'sh';
|
||||
}
|
||||
machine.ip().then(ip => {
|
||||
|
|
Loading…
Reference in New Issue