Skip to content

Commit ef65ec6

Browse files
author
Hunter Thompson
committed
chore: remove duplicate err handling
1 parent dffa6bf commit ef65ec6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pkg/kube2cdk8s/kube2cdk8s.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package kube2cdk8s
22

33
import (
44
"io/ioutil"
5-
"log"
65
"os"
76
"regexp"
87
"strings"
@@ -13,18 +12,13 @@ import (
1312
func Kube2CDK8S(filePath string) (string, error) {
1413

1514
path, _, err := kube2pulumi.Kube2PulumiFile(filePath, "typescript")
16-
1715
if err != nil {
1816
return "", err
1917
}
2018

2119
input, err := ioutil.ReadFile(path)
2220
if err != nil {
23-
log.Println(err)
24-
}
25-
26-
if err != nil {
27-
log.Println(err)
21+
return "", err
2822
}
2923

3024
lines := strings.Split(string(input), "\n")

0 commit comments

Comments
 (0)