Skip to content

Commit

Permalink
Merge pull request #455 from ipfs/fix/api-consts
Browse files Browse the repository at this point in the history
Fix: API constants should explicit their type
  • Loading branch information
hsanjuan committed Jun 2, 2018
2 parents a668414 + 218ee02 commit fa4ddca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var logger = logging.Logger("apitypes")
// TrackerStatus values
const (
// IPFSStatus should never take this value
TrackerStatusBug = iota
TrackerStatusBug TrackerStatus = iota
// The cluster node is offline or not responding
TrackerStatusClusterError
// An error occurred pinning
Expand Down Expand Up @@ -90,7 +90,7 @@ func TrackerStatusFromString(str string) TrackerStatus {

// IPFSPinStatus values
const (
IPFSPinStatusBug = iota
IPFSPinStatusBug IPFSPinStatus = iota
IPFSPinStatusError
IPFSPinStatusDirect
IPFSPinStatusRecursive
Expand Down

0 comments on commit fa4ddca

Please sign in to comment.