diff options
| author | Marcel Beck <marcel@beck.im> | 2019-05-02 18:56:57 +0200 |
|---|---|---|
| committer | Marcel Beck <marcel@beck.im> | 2019-05-02 19:02:56 +0200 |
| commit | b65e14e1fda1c005a07ec9b98e746ce3d699521a (patch) | |
| tree | d141336079455501063b2c11c70fcfd0057d2978 /random/random.go | |
| parent | 20937becaa32cdec93e77a84ad04c73e9155b8e7 (diff) | |
chore: Switch from gometalinter to golangci-lint
Github Issue: #546
Diffstat (limited to 'random/random.go')
| -rw-r--r-- | random/random.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/random/random.go b/random/random.go index 58a44d7d..7dcb4179 100644 --- a/random/random.go +++ b/random/random.go @@ -19,8 +19,7 @@ const defaultSet = "-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstu // StringRE - Generate a random string that matches a given regular // expression. Defaults to "[a-zA-Z0-9_.-]" func StringRE(count int, match string) (r string, err error) { - var chars []rune - chars = []rune(defaultSet) + var chars = []rune(defaultSet) if match != "" { chars, err = matchChars(match) if err != nil { |
