fix
This commit is contained in:
parent
c7946e7551
commit
91e1eb7664
1 changed files with 1 additions and 5 deletions
|
|
@ -212,13 +212,9 @@ public function deploymentType()
|
||||||
{
|
{
|
||||||
if (data_get($this, 'private_key_id')) {
|
if (data_get($this, 'private_key_id')) {
|
||||||
return 'deploy_key';
|
return 'deploy_key';
|
||||||
}
|
} else if (data_get($this, 'source')) {
|
||||||
if (data_get($this, 'source')) {
|
|
||||||
return 'source';
|
return 'source';
|
||||||
}
|
}
|
||||||
if (data_get($this, 'private_key_id')) {
|
|
||||||
return 'deploy_key';
|
|
||||||
}
|
|
||||||
throw new \Exception('No deployment type found');
|
throw new \Exception('No deployment type found');
|
||||||
}
|
}
|
||||||
public function could_set_build_commands(): bool
|
public function could_set_build_commands(): bool
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue