From 2c47a0c60984dee7001ddceaaa470d9f48173ad8 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 30 Jan 2019 12:20:48 +0000 Subject: [PATCH] gofmt is different between go versions and makes everything break --- .travis.yml | 1 - userids.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3547599..13585d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: go go: - 1.10.x - - 1.11.x install: - go get github.com/golang/lint/golint - go get github.com/fzipp/gocyclo diff --git a/userids.go b/userids.go index 70002c5..23e7807 100644 --- a/userids.go +++ b/userids.go @@ -125,6 +125,6 @@ func ExtractUserLocalpart(userID string) (string, error) { } return strings.TrimPrefix( strings.SplitN(userID, ":", 2)[0], // @foo:bar:8448 => [ "@foo", "bar:8448" ] - "@", // remove "@" prefix + "@", // remove "@" prefix ), nil }