Skip to content

Commit

Permalink
starnge error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei M committed Mar 9, 2024
1 parent c90bd88 commit dcd2c65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fsnotes/internal/repo/gitfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func NewGitFile(pathRepo, pathToFile string, git Gitter) *GitFile {
}

func (g *GitFile) ReadRows(ctx context.Context) ([]string, error) {
if g.git == nil {
return nil, fmt.Errorf("strange error try agein")
}
err := g.git.Pull(ctx)
if err != nil {
return nil, fmt.Errorf("gitfile ReadRows pull: %w", err)
Expand Down
1 change: 1 addition & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY=
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=

0 comments on commit dcd2c65

Please sign in to comment.