1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:34:42 -07:00
go/src
Daniel Martí 38ad33088c 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>
2017-09-07 08:26:27 +00:00
..
archive archive/tar: populate Devmajor and Devminor in FileInfoHeader on Darwin 2017-09-01 10:25:54 +00:00
bufio Revert "bufio: make Reader.Peek invalidate Unreads" 2017-07-06 03:06:44 +00:00
builtin
bytes bytes: Add missing examples to functions 2017-08-25 20:50:58 +00:00
cmd cmd/vet: remove two unused parameters and simplify 2017-09-07 08:26:27 +00:00
compress compress/flate: remove non-standard extensions to flate 2017-08-31 03:30:43 +00:00
container
context context: fix lint warning “drop = 0 from declaration” 2017-08-30 17:06:30 +00:00
crypto crypto/cipher: panic when IV length does not equal block size in NewOFB 2017-09-06 14:53:44 +00:00
database/sql all: fix easy-to-miss typos 2017-08-23 03:07:12 +00:00
debug debug/macho: add missing file flags 2017-08-29 00:44:44 +00:00
encoding all: join some chained ifs to unindent code 2017-08-29 20:57:41 +00:00
errors
expvar
flag flag: simplify arg logic in parseOne 2017-09-05 20:31:44 +00:00
fmt fmt: document verbs %b %d %o %x %X for printing pointers 2017-08-28 05:11:30 +00:00
go go/types: fix Info.Implicits entries 2017-09-01 08:06:49 +00:00
hash
html html: updated entity spec link 2017-08-08 04:29:35 +00:00
image
index/suffixarray
internal runtime,cmd/trace: trace GC STW events 2017-08-29 21:54:55 +00:00
io io/ioutil: don't cap buffer size in ReadFile 2017-08-31 19:32:18 +00:00
log log: adds a Logger Output method Example 2017-07-16 03:57:11 +00:00
math math: Add Round function (ties away from zero) 2017-09-02 21:00:08 +00:00
mime mime: ignore key on ParseMediaType when value don't pass RFC 2231 check 2017-08-29 21:10:56 +00:00
net net/url: add examples to URL methods 2017-09-01 23:45:29 +00:00
os os: don't assume /bin/pwd in test, find it in $PATH 2017-08-29 20:08:16 +00:00
path path/filepath: add example for Ext 2017-08-25 16:24:37 +00:00
plugin {net,os/user,plugin}: eliminate unnecessary C round-trips 2017-08-17 18:14:16 +00:00
reflect cmd/compile: fix and improve struct field reflect information 2017-09-05 18:09:41 +00:00
regexp regexp: examples for Regexp.Expand and Regexp.ExpandString functions 2017-08-28 15:34:19 +00:00
runtime runtime: avoid extra tophash check in mapassign when key comparison is cheap 2017-09-07 06:34:12 +00:00
sort sort: add examples for IntsAreSorted, Float64s and Float64sAreSorted 2017-08-28 17:29:29 +00:00
strconv all: remove some double spaces from comments 2017-08-26 15:09:09 +00:00
strings strings: use slice instead of list and array in Fields comment 2017-08-14 21:25:53 +00:00
sync all: join some chained ifs to unindent code 2017-08-29 20:57:41 +00:00
syscall syscall: drop dummy byte for oob in unixgram SendmsgN 2017-08-29 23:30:21 +00:00
testing testing: use time.Since instead of time.Now().Sub 2017-09-06 19:47:37 +00:00
text all: join some chained ifs to unindent code 2017-08-29 20:57:41 +00:00
time time: fix documentation of Round, Truncate behavior for d <= 0 2017-08-29 17:16:15 +00:00
unicode
unsafe all: remove some double spaces from comments 2017-08-26 15:09:09 +00:00
vendor/golang_org/x
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash misc/ios,src/iostest.bash: support GOIOS_DEVICE_ID 2017-08-28 16:37:25 +00:00
make.bash build: add go env GOROOT as default GOROOT_BOOTSTRAP value 2017-08-25 05:36:27 +00:00
make.bat
Make.dist
make.rc build: add go env GOROOT as default GOROOT_BOOTSTRAP value 2017-08-25 05:36:27 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc