MCPcopy Index your code
hub / github.com/coder/coder / fetchLogoURL

Method fetchLogoURL

coderd/notifications/fetcher.go:48–61  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

46}
47
48func (n *notifier) fetchLogoURL(ctx context.Context) (string, error) {
49 logoURL, err := n.store.GetLogoURL(ctx)
50 if err != nil {
51 if errors.Is(err, sql.ErrNoRows) {
52 return notificationsDefaultLogoURL, nil
53 }
54 return "", xerrors.Errorf("get logo URL: %w", err)
55 }
56
57 if logoURL == "" {
58 logoURL = notificationsDefaultLogoURL
59 }
60 return logoURL, nil
61}

Callers 2

fetchHelpersMethod · 0.95

Calls 3

GetLogoURLMethod · 0.65
IsMethod · 0.45
ErrorfMethod · 0.45

Tested by 1