We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c19eb5 commit 0fde8d7Copy full SHA for 0fde8d7
scala-git/src/main/scala/com/madgag/git/package.scala
@@ -41,10 +41,8 @@ import scala.util.{Success, Try}
41
42
package object git {
43
44
- val ObjectFormatter = new Formatter
45
-
46
implicit class RichByteArray(bytes: Array[Byte]) {
47
- lazy val blobId = ObjectFormatter.idFor(OBJ_BLOB, bytes)
+ lazy val blobId = (new Formatter).idFor(OBJ_BLOB, bytes)
48
}
49
50
def storeBlob(bytes: Array[Byte])(implicit i: ObjectInserter): ObjectId = i.insert(OBJ_BLOB, bytes)
0 commit comments