MCPcopy Create free account
hub / github.com/github/gh-aw / templatableBoolFromReflectValue

Function templatableBoolFromReflectValue

pkg/workflow/safe_output_handlers.go:711–720  ·  view source on GitHub ↗
(value reflect.Value)

Source from the content-addressed store, hash-verified

709}
710
711func templatableBoolFromReflectValue(value reflect.Value) (*TemplatableBool, bool) {
712 if !value.IsValid() {
713 return nil, false
714 }
715 if value.Kind() != reflect.Pointer || value.IsNil() {
716 return nil, false
717 }
718 typed, ok := value.Interface().(*TemplatableBool)
719 return typed, ok
720}

Callers 1

safeOutputHandlerStagedFunction · 0.85

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected