Skip to content

Commit

Permalink
chore: remove duplicate err handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter Thompson committed Sep 7, 2021
1 parent dffa6bf commit ef65ec6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/kube2cdk8s/kube2cdk8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package kube2cdk8s

import (
"io/ioutil"
"log"
"os"
"regexp"
"strings"
Expand All @@ -13,18 +12,13 @@ import (
func Kube2CDK8S(filePath string) (string, error) {

path, _, err := kube2pulumi.Kube2PulumiFile(filePath, "typescript")

if err != nil {
return "", err
}

input, err := ioutil.ReadFile(path)
if err != nil {
log.Println(err)
}

if err != nil {
log.Println(err)
return "", err
}

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

0 comments on commit ef65ec6

Please sign in to comment.