Skip to content

Commit

Permalink
Add nil check for IsImport (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshba authored Jan 24, 2024
1 parent b74b13d commit 908b8f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func (t Tree) IsRecreate() bool {
}

func (t Tree) IsImport() bool {
if t.Value.Change.Importing == nil {
return false
}
return t.Value.Change.Importing.ID != ""
}

Expand Down

0 comments on commit 908b8f0

Please sign in to comment.