Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Jul 21, 2020
1 parent 4e2267a commit 610286d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recordadder_cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func main() {
var year = addFlags.Int("year", time.Now().Year(), "Year for accounting purposes")

if err := addFlags.Parse(os.Args[2:]); err == nil {
if id > 0 && cost > 0 && folder > 0 {
if *id > 0 && *cost > 0 && *folder > 0 {
res, err := client.AddRecord(ctx, &pb.AddRecordRequest{Cost: int32(*cost), Id: int32(*id), Folder: int32(*folder), ResetFolder: int32(*resetFoldr), AccountingYear: int32(*year)})
if err != nil {
log.Fatalf("Error on Add Record: %v", err)
Expand Down

0 comments on commit 610286d

Please sign in to comment.