Skip to content

Commit

Permalink
Go fmt file
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-talos committed Oct 27, 2023
1 parent 42e66a2 commit e161d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (store *fileStore) populateCache() (creationTimePopulated bool, err error)
}

if targetSeqNumBytes, err := ioutil.ReadFile(store.targetSeqNumsFname); err == nil {
if targetSeqNum, err := strconv.Atoi(strings.Trim(string(targetSeqNumBytes),"\r\n")); err == nil {
if targetSeqNum, err := strconv.Atoi(strings.Trim(string(targetSeqNumBytes), "\r\n")); err == nil {
if err = store.cache.SetNextTargetMsgSeqNum(targetSeqNum); err != nil {
return creationTimePopulated, errors.Wrap(err, "cache set next target")
}
Expand Down

0 comments on commit e161d08

Please sign in to comment.