diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-11 02:52:32 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-11 04:56:42 +0900 |
| commit | e99d7affb0c128fa82722f9b3d79c99b5e5918cd (patch) | |
| tree | 387e08d6c4363d8b9e0462f069c140fbdb15c917 /internal/app/app_linux.go | |
| parent | 41ac2be9658b49c68cb793f3a6f0c5932d82e1c2 (diff) | |
container: use absolute for pathname
This is simultaneously more efficient and less error-prone. This change caused minor API changes in multiple other packages.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_linux.go')
| -rw-r--r-- | internal/app/app_linux.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/app/app_linux.go b/internal/app/app_linux.go index 89ff6eda..1563f99d 100644 --- a/internal/app/app_linux.go +++ b/internal/app/app_linux.go @@ -7,7 +7,6 @@ import ( "hakurei.app/hst" "hakurei.app/internal/app/state" - "hakurei.app/internal/hlog" "hakurei.app/internal/sys" ) @@ -59,10 +58,6 @@ func (a *app) Seal(config *hst.Config) (SealedApp, error) { if a.outcome != nil { panic("app sealed twice") } - if config == nil { - return nil, hlog.WrapErr(ErrConfig, - "attempted to seal app with nil config") - } seal := new(outcome) seal.id = a.id |
