(cfg codersdk.AppearanceConfig)
| 742 | } |
| 743 | |
| 744 | func applicationNameOrDefault(cfg codersdk.AppearanceConfig) string { |
| 745 | if cfg.ApplicationName != "" { |
| 746 | return cfg.ApplicationName |
| 747 | } |
| 748 | return "Coder" |
| 749 | } |
| 750 | |
| 751 | // OnlyFiles returns a new fs.FS that only contains files. If a directory is |
| 752 | // requested, os.ErrNotExist is returned. This prevents directory listings from |
no outgoing calls
no test coverage detected