trim whitespace when returning from the db
This commit is contained in:
parent
5254b1547a
commit
e90e928943
3
store.go
3
store.go
@ -8,6 +8,7 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
"github.com/matrix-org/gomatrix"
|
||||
)
|
||||
@ -64,7 +65,7 @@ func (s FStore) Get(key string) (string, error) {
|
||||
if err != nil {
|
||||
return "", nil
|
||||
}
|
||||
return string(data), nil
|
||||
return strings.TrimSpace(string(data)), nil
|
||||
}
|
||||
|
||||
// SaveFilterID exposed for gomatrix
|
||||
|
Loading…
Reference in New Issue
Block a user