From ad7fbaae7a2001502582e6daa27eaffad8a3c447 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Wed, 18 Oct 2023 12:49:14 -0600 Subject: fix Modifiers.Empty() and "git with templates" --- types.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'types.go') diff --git a/types.go b/types.go index 392b955..af7f30f 100644 --- a/types.go +++ b/types.go @@ -25,7 +25,15 @@ type Modifiers struct { } func (m Modifiers) Empty() bool { - return m.DirDefault == "" && !m.DirList && !m.Exec && !m.ExtendedGophermap + return (m.DirDefault == "" && + !m.DirList && + !m.Exec && + !m.ExtendedGophermap && + m.ExecCmd == "" && + !m.AutoAtom && + m.Titan == nil && + m.titanName == "" && + m.Templates == nil) } type RouteDirective struct { -- cgit v1.2.3