MCPcopy
hub / github.com/1Password/for-open-source / RenderProblems

Method RenderProblems

script/application.go:117–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117func (a *Application) RenderProblems() string {
118 var problemStrings []string
119
120 for _, err := range a.Problems {
121 problemStrings = append(problemStrings, fmt.Sprintf("- %s", err.Error()))
122 }
123
124 return strings.Join(problemStrings, "\n")
125}
126
127func (a *Application) GetData() []byte {
128 data, err := json.MarshalIndent(a, "", "\t")

Callers 1

createCommentMethod · 0.80

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected