()
| 313 | } |
| 314 | |
| 315 | func (d *dependency) ServerStaticFS() static.ServeFileSystem { |
| 316 | if d.serverStaticFS != nil { |
| 317 | return d.serverStaticFS |
| 318 | } |
| 319 | |
| 320 | sfs, err := statics.NewServerStaticFS(d.Logger(), d.Statics(), d.isPro) |
| 321 | if err != nil { |
| 322 | d.panicError(err) |
| 323 | } |
| 324 | |
| 325 | d.serverStaticFS = sfs |
| 326 | return d.serverStaticFS |
| 327 | } |
| 328 | |
| 329 | func (d *dependency) DBClient() *ent.Client { |
| 330 | if d.dbClient != nil { |
nothing calls this directly
no test coverage detected