Code Review: Useless time and comment.
This commit is contained in:
parent
10dae5d108
commit
f761854eff
|
@ -40,9 +40,7 @@ const (
|
||||||
var Processor001 Processor = &processor001{}
|
var Processor001 Processor = &processor001{}
|
||||||
|
|
||||||
// processor001 is responsible for handling API version 0.0.1.
|
// processor001 is responsible for handling API version 0.0.1.
|
||||||
type processor001 struct {
|
type processor001 struct{}
|
||||||
time clock
|
|
||||||
}
|
|
||||||
|
|
||||||
// entity001 represents a the JSON structure that 0.0.1 uses.
|
// entity001 represents a the JSON structure that 0.0.1 uses.
|
||||||
type entity001 []struct {
|
type entity001 []struct {
|
||||||
|
|
|
@ -85,8 +85,8 @@ func (f *Fingerprint) Equal(o *Fingerprint) bool {
|
||||||
|
|
||||||
const rowKeyDelimiter = "-"
|
const rowKeyDelimiter = "-"
|
||||||
|
|
||||||
// LoadFromString transforms a rowKey into a Fingerprint, resetting any
|
// LoadFromString transforms a string representation into a Fingerprint,
|
||||||
// previous attributes.
|
// resetting any previous attributes.
|
||||||
func (f *Fingerprint) LoadFromString(s string) {
|
func (f *Fingerprint) LoadFromString(s string) {
|
||||||
components := strings.Split(s, rowKeyDelimiter)
|
components := strings.Split(s, rowKeyDelimiter)
|
||||||
hash, err := strconv.ParseUint(components[0], 10, 64)
|
hash, err := strconv.ParseUint(components[0], 10, 64)
|
||||||
|
|
Loading…
Reference in New Issue