Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatureDev committed May 26, 2023
1 parent 4f26650 commit 77f9600
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 34 deletions.
3 changes: 1 addition & 2 deletions model/ledger/account_root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestAccountRoot(t *testing.T) {
var s LedgerObject
s = &AccountRoot{
var s LedgerObject = &AccountRoot{
Account: "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
AccountTxnID: "0D5FB50FA65C9FE1538FD7E398FFFE9D1908DFA4576D8D7A020040686F93C77D",
Balance: types.XRPCurrencyAmount(148446663),
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/amendments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestAmmendments(t *testing.T) {
var s LedgerObject
s = &Amendments{
var s LedgerObject = &Amendments{
Amendments: []types.Hash256{
"42426C4D4F1009EE67080A9B7965B44656D7714D104A72F9B4369F97ABF044EE",
"4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373",
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
)

func TestCheck(t *testing.T) {
var s LedgerObject
s = &Check{
var s LedgerObject = &Check{
Account: "rUn84CUYbNjRoTQ6mSW7BVJPSVJNLb1QLo",
Destination: "rfkE1aSy9G8Upk4JssnwBxhEv5p4mn2KTy",
DestinationNode: "0000000000000000",
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/deposit_preauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
)

func TestDepositPreauth(t *testing.T) {
var s LedgerObject
s = &DepositPreauthObj{
var s LedgerObject = &DepositPreauthObj{
LedgerEntryType: DepositPreauthObjEntry,
Account: "rsUiUMpnrgxQp24dJYZDhmV4bE3aBtQyt8",
Authorize: "rEhxGqkqPPSxQ3P25J66ft5TwpzV14k2de",
Expand Down
6 changes: 2 additions & 4 deletions model/ledger/directory_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestOfferDirectoryNode(t *testing.T) {
var s LedgerObject
s = &DirectoryNode{
var s LedgerObject = &DirectoryNode{
Flags: 0,
Indexes: []types.Hash256{
"AD7EAE148287EF12D213A251015F86E6D4BD34B3C4A0A1ED9A17198373F908AD",
Expand Down Expand Up @@ -41,8 +40,7 @@ func TestOfferDirectoryNode(t *testing.T) {
}

func TestOwnerDirectoryNode(t *testing.T) {
var s LedgerObject
s = &DirectoryNode{
var s LedgerObject = &DirectoryNode{
Flags: 0,
Indexes: []types.Hash256{
"AD7EAE148287EF12D213A251015F86E6D4BD34B3C4A0A1ED9A17198373F908AD",
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/escrow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestEscrow(t *testing.T) {
var s LedgerObject
s = &Escrow{
var s LedgerObject = &Escrow{
Account: "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
Amount: types.XRPCurrencyAmount(10000),
CancelAfter: 545440232,
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/fee_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
)

func TestFeeSettings(t *testing.T) {
var s LedgerObject
s = &FeeSettings{
var s LedgerObject = &FeeSettings{
BaseFee: "000000000000000A",
Flags: 0,
LedgerEntryType: FeeSettingsEntry,
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/ledger_hashes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestLedgerHashes(t *testing.T) {
var s LedgerObject
s = &LedgerHashes{
var s LedgerObject = &LedgerHashes{
FirstLedgerSequence: 2,
Flags: 0,
Hashes: []types.Hash256{
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/negative_unl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
)

func TestNegativeUNL(t *testing.T) {
var s LedgerObject
s = &NegativeUNL{
var s LedgerObject = &NegativeUNL{
DisabledValidators: []DisabledValidatorEntry{
{
DisabledValidator: DisabledValidator{
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/nftoken_offer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestNFTokenOffer(t *testing.T) {
var s LedgerObject
s = &NFTokenOffer{
var s LedgerObject = &NFTokenOffer{
Amount: types.XRPCurrencyAmount(1000000),
Flags: 1,
LedgerEntryType: NFTokenOfferEntry,
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/nftoken_page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestNFTokenPage(t *testing.T) {
var s LedgerObject
s = &NFTokenPage{
var s LedgerObject = &NFTokenPage{
LedgerEntryType: NFTokenPageEntry,
PreviousTxnID: "95C8761B22894E328646F7A70035E9DFBECC90EDD83E43B7B973F626D21A0822",
PreviousTxnLgrSeq: 42891441,
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/offer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestOffer(t *testing.T) {
var s LedgerObject
s = &Offer{
var s LedgerObject = &Offer{
Account: "rBqb89MRQJnMPq8wTwEbtz4kvxrEDfcYvt",
BookDirectory: "ACC27DE91DBA86FC509069EAF4BC511D73128B780F2E54BF5E07A369E2446000",
BookNode: "0000000000000000",
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/pay_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestPayChannel(t *testing.T) {
var s LedgerObject
s = &PayChannel{
var s LedgerObject = &PayChannel{
Account: "rBqb89MRQJnMPq8wTwEbtz4kvxrEDfcYvt",
Destination: "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
Amount: types.XRPCurrencyAmount(4325800),
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/ripple_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
)

func TestRippleState(t *testing.T) {
var s LedgerObject
s = &RippleState{
var s LedgerObject = &RippleState{
Balance: types.IssuedCurrencyAmount{
Currency: "USD",
Issuer: "rrrrrrrrrrrrrrrrrrrrBZbvji",
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/signer_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
)

func TestSignerList(t *testing.T) {
var s LedgerObject
s = &SignerList{
var s LedgerObject = &SignerList{
Flags: 0,
LedgerEntryType: SignerListEntry,
OwnerNode: "0000000000000000",
Expand Down
3 changes: 1 addition & 2 deletions model/ledger/ticket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
)

func TestTicket(t *testing.T) {
var s LedgerObject
s = &Ticket{
var s LedgerObject = &Ticket{
Account: "rEhxGqkqPPSxQ3P25J66ft5TwpzV14k2de",
Flags: 0,
LedgerEntryType: TicketEntry,
Expand Down

0 comments on commit 77f9600

Please sign in to comment.