summaryrefslogtreecommitdiff
path: root/internal/resource/link/link.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/resource/link/link.go')
-rw-r--r--internal/resource/link/link.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/resource/link/link.go b/internal/resource/link/link.go
index 8600166..0e5582c 100644
--- a/internal/resource/link/link.go
+++ b/internal/resource/link/link.go
@@ -83,8 +83,7 @@ func (l *Link) resourceType() string {
// registering it. Used by other resource packages (e.g. dir) to recreate an
// individual symlink without it becoming its own top-level resource.
func Ensure(path string, opts ...opt.Option) error {
- build(path, opts...)
- return nil
+ return build(path, opts...).apply()
}
func Have(path string, opts ...opt.Option) resource.Resource {