MCPcopy Create free account
hub / github.com/cli/cli / isBlank

Function isBlank

api/queries_pr.go:756–765  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

754}
755
756func isBlank(v any) bool {
757 switch vv := v.(type) {
758 case string:
759 return vv == ""
760 case []string:
761 return len(vv) == 0
762 default:
763 return true
764 }
765}
766
767func PullRequestClose(httpClient *http.Client, repo ghrepo.Interface, prID string) error {
768 var mutation struct {

Callers 1

CreatePullRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected