From c0f98b1f8e2e3476067da24b7d0746be3fcf0d1f Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Tue, 14 Sep 2021 12:22:08 -0700 Subject: [PATCH] [lbry] ci: fix linting errors --- block_test.go | 2 +- gcs/gcs.go | 2 +- net.go | 1 + psbt/psbt_test.go | 2 +- tx_test.go | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/block_test.go b/block_test.go index 5fb615a..bb5d316 100644 --- a/block_test.go +++ b/block_test.go @@ -11,10 +11,10 @@ import ( "testing" "time" + "github.com/davecgh/go-spew/spew" "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/lbryio/lbcd/wire" "github.com/lbryio/lbcutil" - "github.com/davecgh/go-spew/spew" ) // TestBlock tests the API for Block. diff --git a/gcs/gcs.go b/gcs/gcs.go index b84cea4..62bd50b 100644 --- a/gcs/gcs.go +++ b/gcs/gcs.go @@ -12,8 +12,8 @@ import ( "sort" "github.com/aead/siphash" - "github.com/lbryio/lbcd/wire" "github.com/kkdai/bstream" + "github.com/lbryio/lbcd/wire" ) // Inspired by https://github.com/rasky/gcs diff --git a/net.go b/net.go index a80097c..d8318b4 100644 --- a/net.go +++ b/net.go @@ -2,6 +2,7 @@ // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. +//go:build !appengine // +build !appengine package lbcutil diff --git a/psbt/psbt_test.go b/psbt/psbt_test.go index be7ea3f..6075d6e 100644 --- a/psbt/psbt_test.go +++ b/psbt/psbt_test.go @@ -11,11 +11,11 @@ import ( "encoding/hex" "testing" + "github.com/davecgh/go-spew/spew" "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/lbryio/lbcd/txscript" "github.com/lbryio/lbcd/wire" "github.com/lbryio/lbcutil" - "github.com/davecgh/go-spew/spew" ) // Test vectors from: diff --git a/tx_test.go b/tx_test.go index ca21521..8b28be5 100644 --- a/tx_test.go +++ b/tx_test.go @@ -10,9 +10,9 @@ import ( "reflect" "testing" + "github.com/davecgh/go-spew/spew" "github.com/lbryio/lbcd/chaincfg/chainhash" "github.com/lbryio/lbcutil" - "github.com/davecgh/go-spew/spew" ) // TestTx tests the API for Tx.