mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Bring code into line with Golangci-lint linters
- Error strings are no longer capitalized nor end with punctuation - Alias import - Remove extraneous initilisation code (No need to provide zero value for variables, because the compiler does that anyway)
This commit is contained in:
parent
b26c7a7a73
commit
8bbdb3b51a
6 changed files with 11 additions and 11 deletions
|
@ -14,7 +14,7 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"git.torproject.org/pluggable-transports/goptlib.git"
|
||||
pt "git.torproject.org/pluggable-transports/goptlib.git"
|
||||
sf "git.torproject.org/pluggable-transports/snowflake.git/client/lib"
|
||||
"git.torproject.org/pluggable-transports/snowflake.git/common/safelog"
|
||||
"github.com/pion/webrtc"
|
||||
|
@ -102,7 +102,7 @@ func main() {
|
|||
// deadlock because the buffer is full.
|
||||
// https://bugs.torproject.org/26360
|
||||
// https://bugs.torproject.org/25600#comment:14
|
||||
var logOutput io.Writer = ioutil.Discard
|
||||
var logOutput = ioutil.Discard
|
||||
if *logFilename != "" {
|
||||
if *logToStateDir {
|
||||
stateDir, err := pt.MakeStateDir()
|
||||
|
@ -184,7 +184,7 @@ func main() {
|
|||
}
|
||||
pt.CmethodsDone()
|
||||
|
||||
var numHandlers int = 0
|
||||
var numHandlers int
|
||||
var sig os.Signal
|
||||
sigChan := make(chan os.Signal, 1)
|
||||
signal.Notify(sigChan, syscall.SIGTERM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue