diff options
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), } |