summaryrefslogtreecommitdiff
path: root/types.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-10-18 12:49:14 -0600
committertjpcc <tjp@ctrl-c.club>2023-10-18 12:49:14 -0600
commitad7fbaae7a2001502582e6daa27eaffad8a3c447 (patch)
tree6330cf924fe19e61d8f047d7173678cc49a7ba9e /types.go
parent059d44027018f1eaa69d3a0f9779da78eb651ced (diff)
fix Modifiers.Empty() and "git with templates"
Diffstat (limited to 'types.go')
-rw-r--r--types.go10
1 files changed, 9 insertions, 1 deletions
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 {