Skip to content

Commit

Permalink
set nil as the initial value of the struct reference type fields(part…
Browse files Browse the repository at this point in the history
… 2) (#259)
  • Loading branch information
shove70 authored Nov 20, 2023
1 parent 95272c2 commit 18a9367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repo.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct Repo {
latest_update_hash string @[skip]
latest_activity time.Time @[skip]
mut:
git_repo &git.Repo @[skip] // libgit wrapper repo
git_repo &git.Repo = unsafe { nil } @[skip] // libgit wrapper repo
webhook_secret string
tags_count int
nr_open_issues int @[orm: 'open_issues_count']
Expand Down

0 comments on commit 18a9367

Please sign in to comment.