Skip to content

Commit

Permalink
Replace deprecated golint with revive.
Browse files Browse the repository at this point in the history
  • Loading branch information
drn committed Apr 14, 2022
1 parent 16c416d commit 1444619
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
with:
go-version: '^1.17.5'
- name: Install Golint
run: go get -u golang.org/x/lint/golint
run: go install github.com/mgechev/revive@latest
- name: Go Lint
run: golint ./...
run: revive -set_exit_status ./...

dots-install-bin:
name: dots install bin
Expand Down
6 changes: 3 additions & 3 deletions cmd/home-scp/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/drn/dots/pkg/run"
)

var homeUser string = os.Getenv("HOME_USER")
var homeWAN string = os.Getenv("HOME_WAN")
var homeLAN string = os.Getenv("HOME_LAN")
var homeUser = os.Getenv("HOME_USER")
var homeWAN = os.Getenv("HOME_WAN")
var homeLAN = os.Getenv("HOME_LAN")

func main() {
if len(os.Args) < 2 {
Expand Down

0 comments on commit 1444619

Please sign in to comment.