Skip to content

Commit

Permalink
Fix linter issues (deso-protocol#339)
Browse files Browse the repository at this point in the history
* Fix linter issues

* address linter errors
  • Loading branch information
lazynina authored May 3, 2022
1 parent 7de3683 commit 23eabd5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion routes/admin_fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (fes *APIServer) AdminGetExemptPublicKeys(ww http.ResponseWriter, req *http
return
}
exemptPublicKeyMap := make(map[string]*ProfileEntryResponse)
for publicKeyBase58Check, _ := range fes.ExemptPublicKeyMap {
for publicKeyBase58Check := range fes.ExemptPublicKeyMap {
var publicKeyBytes []byte
// Convert the PublicKeyBase58Check string to a public key byte slice.
publicKeyBytes, _, err = lib.Base58CheckDecode(publicKeyBase58Check)
Expand Down
2 changes: 1 addition & 1 deletion routes/admin_referrals.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func (fes *APIServer) getReferralInfoResponsesForPubKey(pkBytes []byte, includeR
}
isActive, err := lib.ReadBoolByte(bytes.NewReader(isActiveBytes))
if err != nil {
return nil, errors.Wrapf(err, "fes.getReferralInfoResponsesForPubKey:" +
return nil, errors.Wrapf(err, "fes.getReferralInfoResponsesForPubKey:"+
"problem reading isActiveBytes")
}

Expand Down
6 changes: 3 additions & 3 deletions routes/global_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestGlobalStateServicePutGetDeleteWithDB(t *testing.T) {
require.NoError(err)
expectedValues := [][]byte{
[]byte("hoo"),
[]byte{},
{},
[]byte("tastic"),
}
for ii, vv := range valueList {
Expand Down Expand Up @@ -135,8 +135,8 @@ func TestGlobalStateServicePutGetDeleteWithRemoteNode(t *testing.T) {
}
expectedValues := [][]byte{
[]byte("hoo"),
[]byte{},
[]byte{},
{},
{},
}
for ii, vv := range res.ValueList {
require.Equal(vv, expectedValues[ii])
Expand Down
2 changes: 1 addition & 1 deletion routes/hot_feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ func (fes *APIServer) SaveOrderedFeedForTags(sortByHotness bool, PostTagToOrdere
tagHotFeedOrderedList := []*HotFeedEntry{}
tagHotFeedListWithAge := []*HotFeedEntryTimeSortable{}
// Loop through every tagged post for the tag in question.
for tagPostHashKey, _ := range tagPostHashes {
for tagPostHashKey := range tagPostHashes {
tagPostHash := tagPostHashKey
if postHotnessInfo, ok := fes.HotFeedPostHashToTagScoreMap[tagPostHash]; ok {
postHotFeedEntry := &HotFeedEntryTimeSortable{
Expand Down
2 changes: 1 addition & 1 deletion routes/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ func (fes *APIServer) GetPostEntriesForGlobalWhitelist(
}

_, dbPostAndCommentHashes, _, err := lib.DBGetAllPostsAndCommentsForPublicKeyOrderedByTimestamp(
utxoView.Handle, fes.blockchain.Snapshot(), readerPK, false /*fetchEntries*/,
utxoView.Handle, fes.blockchain.Snapshot(), readerPK, false, /*fetchEntries*/
minTimestampNanos, maxTimestampNanos,
)
if err != nil {
Expand Down

0 comments on commit 23eabd5

Please sign in to comment.