Update status_test.go
Move setting struct values into struct initialisation Co-authored-by: lhchavez <lhchavez@lhchavez.com>
This commit is contained in:
parent
faa4e293ba
commit
a63936f29e
|
@ -69,9 +69,10 @@ func TestStatusNothing(t *testing.T) {
|
|||
|
||||
seedTestRepo(t, repo)
|
||||
|
||||
opts := &StatusOptions{}
|
||||
opts.Show = StatusShowIndexAndWorkdir
|
||||
opts.Flags = StatusOptIncludeUntracked | StatusOptRenamesHeadToIndex | StatusOptSortCaseSensitively
|
||||
opts := &StatusOptions{
|
||||
Show: StatusShowIndexAndWorkdir,
|
||||
Flags: StatusOptIncludeUntracked | StatusOptRenamesHeadToIndex | StatusOptSortCaseSensitively,
|
||||
}
|
||||
|
||||
statusList, err := repo.StatusList(opts)
|
||||
checkFatal(t, err)
|
||||
|
|
Loading…
Reference in New Issue