Skip to content

Commit

Permalink
upgrade go
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-tw committed Oct 8, 2021
1 parent fcb61ef commit abd58af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: go
go:
- 1.10.x
- 1.17.x
go_import_path: github.com/teamwork/kommentaar
notifications:
email: false
Expand All @@ -10,6 +10,8 @@ cache:
- $HOME/.cache/go-build
install:
- ./bin/setup-travis
env:
- GO111MODULE=off
script:
- cd $HOME/gopath/src/github.com/teamwork/kommentaar
- ./bin/test -race ./...
Expand Down
2 changes: 1 addition & 1 deletion docparse/jsonschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func setTags(name, fName string, p *Schema, tags []string) error {
switch {
case strings.HasPrefix(t, "enum: "):
p.Type = "enum"
t = strings.Replace(t[5:], "\n", " ", 999)
t = strings.ReplaceAll(t[5:], "\n", " ")
for _, e := range strings.Split(t, " ") {
e = strings.TrimSpace(e)
if e != "" {
Expand Down

0 comments on commit abd58af

Please sign in to comment.