diff options
author | Robin Jarry <robin@jarry.cc> | 2022-12-20 17:05:43 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-01-04 22:57:31 +0100 |
commit | ae675b491d2b55a06588e8ab4ce8205aaae796c8 (patch) | |
tree | 383920e34344ea3456162fb74cc180bfb33dec83 /commands/account/recover.go | |
parent | 2a290cf1ed6113f0d01eea3f2cff446339bed0ce (diff) | |
download | aerc-ae675b491d2b55a06588e8ab4ce8205aaae796c8.tar.gz |
templates: change fields as lazy functions
No need to pre-render fields that are not necessarily accessed in
templates. Change fields to functions that are evaluated only when
required.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'commands/account/recover.go')
-rw-r--r-- | commands/account/recover.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/account/recover.go b/commands/account/recover.go index 8ce878ee..cef0720f 100644 --- a/commands/account/recover.go +++ b/commands/account/recover.go @@ -10,7 +10,6 @@ import ( "git.sr.ht/~rjarry/aerc/commands" "git.sr.ht/~rjarry/aerc/lib/ui" "git.sr.ht/~rjarry/aerc/log" - "git.sr.ht/~rjarry/aerc/models" "git.sr.ht/~rjarry/aerc/widgets" "git.sr.ht/~sircmpwn/getopt" ) @@ -103,7 +102,7 @@ func (Recover) Execute(aerc *widgets.Aerc, args []string) error { composer, err := widgets.NewComposer(aerc, acct, acct.AccountConfig(), acct.Worker(), - "", nil, models.OriginalMail{}) + "", nil, nil) if err != nil { return err } |