From eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 23 Mar 2024 14:50:37 +0100 Subject: chore(promises): make a Status function part of the Promise interface --- pkg/files.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/files.go') diff --git a/pkg/files.go b/pkg/files.go index 379b437..366bacc 100644 --- a/pkg/files.go +++ b/pkg/files.go @@ -123,6 +123,10 @@ func (f *FilePromise) Resolve() { } } +func (f FilePromise) Status() Status { + return f.status +} + // ----- Internal -------------------------------------------------------------- func resolveFiles() (status Status) { status = KEPT -- cgit v1.2.3