syncthing/cmd
Jakob Borg 2111386ee4
all: Fix some linter errors (#5499)
I'm working through linter complaints, these are some fixes. Broad
categories:

1) Ignore errors where we can ignore errors: add "_ = ..." construct.
you can argue that this is annoying noise, but apart from silencing the
linter it *does* serve the purpose of highlighting that an error is
being ignored. I think this is OK, because the linter highlighted some
error cases I wasn't aware of (starting CPU profiles, for example).

2) Untyped constants where we though we had set the type.

3) A real bug where we ineffectually assigned to a shadowed err.

4) Some dead code removed.

There'll be more of these, because not all packages are fixed, but the
diff was already large enough.
2019-02-02 10:11:42 +01:00
..
stbench all: Fix comment typos 2017-11-04 07:20:11 +00:00
stcli cmd/stcli: Add config command with pretty printed JSON (#5049) 2018-07-06 00:37:13 +02:00
stcompdirs lib: Folder marker is now a folder 2017-09-02 05:52:38 +00:00
stdisco all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stdiscosrv all: Update protobuf package 1.0.0 -> 1.2.0 (#5452) 2019-01-14 11:53:36 +01:00
stevents all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stfileinfo all: Implement variable sized blocks (fixes #4807) 2018-04-16 19:08:50 +01:00
stfinddevice all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stfindignored cmd/stfindignored: Default to current directory 2018-06-06 22:24:36 +02:00
stgenfiles all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stindex cmd/stindex: Add index checking mode ("idxck") (#5262) 2018-10-11 20:48:39 +01:00
strelaypoolsrv cmd/strelaypoolsrv: Hardcode a usable maps API key (fixes #5296) 2018-10-31 07:39:38 +01:00
strelaysrv cmd/*, lib/tlsutil: Refactor TLS stuff (fixes #5256) (#5276) 2018-10-21 14:17:50 +09:00
stsigtool cmd/stsigtool: Silence spurious Go 1.10 test/vet complaint 2017-12-10 19:42:17 +01:00
stvanity all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stwatchfile all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
syncthing all: Fix some linter errors (#5499) 2019-02-02 10:11:42 +01:00
todos all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
uraggregate cmd/ur*: Updates for 1.0 2019-01-03 21:46:02 +01:00
ursrv cmd/ur*: Updates for 1.0 2019-01-03 21:46:02 +01:00
.gitignore Remove reprecated st* utils 2014-07-01 12:20:25 +02:00