We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab8e62 commit 280067bCopy full SHA for 280067b
1 file changed
pkg/utils.go
@@ -19,24 +19,6 @@ func ParseConfig(body []byte) (*Config, error) {
19
return &config, err
20
}
21
22
-// ParseDomain returns the domain field from the bytes of a build hook response.
23
-func ParseDomain(bytes []byte) (string, error) {
24
- var hook BuildHookResponse
25
- if err := json.Unmarshal(bytes, &hook); err != nil {
26
- return "", err
27
- }
28
-
29
- if hook.Domains == nil {
30
- return "", fmt.Errorf("invalid application domain")
31
32
33
- if len(hook.Domains) < 1 {
34
35
36
37
- return hook.Domains[0], nil
38
-}
39
40
// GetDefaultType returns the default process types given a YAML byte array.
41
func GetDefaultType(bytes []byte) (string, error) {
42
type YamlTypeMap struct {
0 commit comments