Skip to content

Commit

Permalink
fixes logic error in Depth() libostree option
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Ishie committed Jan 12, 2024
1 parent feae074 commit 793ac41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugins/ostree/pkg/libostree/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func NoGPGVerifySummary() Option {
func Depth(depth int) Option {
return func(builder *C.GVariantBuilder, deferFree deferredFreeFn) {
// 0 is the default depth so there is no need to add it to the builder.
if depth != 0 {
if depth == 0 {
return
}
key := C.CString("depth")
Expand Down

0 comments on commit 793ac41

Please sign in to comment.