diff options
author | Michael Muré <batolettre@gmail.com> | 2023-08-11 14:50:45 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2023-08-11 14:50:45 +0200 |
commit | 395b6eb1c2de3e229d31d46f8d2afdb3f1d59fab (patch) | |
tree | 6a42d31f00188622912325630e5d14d7123fad79 /entity/dag/op_noop.go | |
parent | f0167a1d6068d22af5ffff260e2848f7c14a71b3 (diff) | |
download | git-bug-boostrap-rework.tar.gz git-bug-boostrap-rework.zip |
Diffstat (limited to 'entity/dag/op_noop.go')
-rw-r--r-- | entity/dag/op_noop.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/entity/dag/op_noop.go b/entity/dag/op_noop.go index d8a2a05a..e94b2edf 100644 --- a/entity/dag/op_noop.go +++ b/entity/dag/op_noop.go @@ -5,17 +5,17 @@ import ( "github.com/MichaelMure/git-bug/entity" ) -var _ Operation = &NoOpOperation[entity.Snapshot]{} -var _ entity.OperationDoesntChangeSnapshot = &NoOpOperation[entity.Snapshot]{} +var _ Operation = &NoOpOperation[Snapshot]{} +var _ entity.OperationDoesntChangeSnapshot = &NoOpOperation[Snapshot]{} // NoOpOperation is an operation that does not change the entity state. It can // however be used to store arbitrary metadata in the entity history, for example // to support a bridge feature. -type NoOpOperation[SnapT entity.Snapshot] struct { +type NoOpOperation[SnapT Snapshot] struct { OpBase } -func NewNoOpOp[SnapT entity.Snapshot](opType entity.OperationType, author identity.Interface, unixTime int64) *NoOpOperation[SnapT] { +func NewNoOpOp[SnapT Snapshot](opType entity.OperationType, author identity.Interface, unixTime int64) *NoOpOperation[SnapT] { return &NoOpOperation[SnapT]{ OpBase: NewOpBase(opType, author, unixTime), } |