Skip to content

Commit 280067b

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(utils.go): remove dead code
… which was also causing the build to fail
1 parent 3ab8e62 commit 280067b

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

pkg/utils.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,6 @@ func ParseConfig(body []byte) (*Config, error) {
1919
return &config, err
2020
}
2121

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-
return "", fmt.Errorf("invalid application domain")
35-
}
36-
37-
return hook.Domains[0], nil
38-
}
39-
4022
// GetDefaultType returns the default process types given a YAML byte array.
4123
func GetDefaultType(bytes []byte) (string, error) {
4224
type YamlTypeMap struct {

0 commit comments

Comments
 (0)