aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/compose.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index 3a960325..1e7450e9 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -538,8 +538,7 @@ func (c *Composer) AddSignature() {
} else {
signature = c.readSignatureFromFile()
}
- signature = bytes.TrimSpace(signature)
- if len(signature) == 0 {
+ if len(bytes.TrimSpace(signature)) == 0 {
return
}
signature = ensureSignatureDelimiter(signature)