Skip to content

Commit

Permalink
Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoeser committed Oct 21, 2023
1 parent 68a0e4a commit 3694cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions files/json_yaml_parse.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package files

import (
"io/ioutil"
"os"

"github.com/rs/zerolog/log"
)

func ParseJsonOrYamlFile(path string) ([]byte, error) {

data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
log.Fatal().Err(err)
return nil, err
Expand Down
3 changes: 1 addition & 2 deletions git/git.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package git

Check failure on line 1 in git/git.go

View workflow job for this annotation

GitHub Actions / lint

: # github.com/jmoeser/go-git-sync/git

import (
"io/ioutil"
"os"

"github.com/go-git/go-git/v5"
Expand All @@ -12,7 +11,7 @@ import (
)

func GetTempDir() string {
dir, err := ioutil.TempDir(os.TempDir(), "go-git-sync-")
dir, err := os.MkdirTemp(os.TempDir, "-git-sync"))

Check failure on line 14 in git/git.go

View workflow job for this annotation

GitHub Actions / test

syntax error: unexpected ) at end of statement

Check failure on line 14 in git/git.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected ) at end of statement (typecheck)

Check failure on line 14 in git/git.go

View workflow job for this annotation

GitHub Actions / lint

expected statement, found ')' (typecheck)

Check failure on line 14 in git/git.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected ) at end of statement) (typecheck)

Check failure on line 14 in git/git.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected ) at end of statement) (typecheck)
if err != nil {
log.Error().Err(err)
}
Expand Down

0 comments on commit 3694cb6

Please sign in to comment.