]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: remove two unused parameters and simplify
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 6 Sep 2017 19:59:00 +0000 (21:59 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 7 Sep 2017 08:26:27 +0000 (08:26 +0000)
commit38ad33088c3bee63e8d53e7aff4d6610d82ca84c
treedb8011a878cb56c8551f51da8447c0af4f05161a
parentec0e2edd3b8e92ca003416a4cdbd9b7345d9d38f
cmd/vet: remove two unused parameters and simplify

The isStar and directory function parameters have been unused ever since
they were introduced. Remove them.

While at it, apply some other minor simplifications, such as simplifying
a HasPrefix if and using an early continue to unindent many lines of
code.

Change-Id: I8d57353e9ec10cdb59c5388cf6152ce0ec17bdba
Reviewed-on: https://go-review.googlesource.com/62030
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Marvin Stenger <marvin.stenger94@gmail.com>
src/cmd/vet/buildtag.go
src/cmd/vet/main.go
src/cmd/vet/method.go
src/cmd/vet/print.go
src/cmd/vet/unused.go