Skip to content

Commit

Permalink
Use bitshifting for inputLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Jul 20, 2016
1 parent 871a500 commit 9795266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands/object/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
// ErrObjectTooLarge is returned when too much data was read from stdin. current limit 2m
var ErrObjectTooLarge = errors.New("input object was too large. limit is 2mbytes")

const inputLimit = 2 * 1024 * 1024
const inputLimit = 2 << 20

type Node struct {
Links []Link
Expand Down

1 comment on commit 9795266

@GitCop
Copy link

@GitCop GitCop commented on 9795266 Jul 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were the following issues with your Pull Request

We ask for a few features in the commit message for Open Source licensing hygiene and commit message clarity.
git commit --amend can often help you quickly improve the commit message.
Guidelines and a script are available to help in the long run.
Your feedback on GitCop is welcome on this issue.


This message was auto-generated by https://gitcop.com

Please sign in to comment.