minor changes to remove a line of dead code and update a comment

dev-test-db
Jim Lambert 6 years ago committed by Jeff Malnick
parent d9b68b93d0
commit 0231fbe68c

@ -430,7 +430,6 @@ func Test_Replay(t *testing.T) {
assert.Equal(foundUser.Id, foundReplayedUser.Id)
assert.Equal(foundUser.Name, foundReplayedUser.Name)
// assert.Equal(foundUser.Name, userName)
assert.Equal(foundUser.PhoneNumber, foundReplayedUser.PhoneNumber)
assert.Equal(foundReplayedUser.PhoneNumber, "867-5309")
assert.Equal(foundUser.Email, foundReplayedUser.Email)

@ -54,9 +54,8 @@ func (w *GormWriter) Create(i interface{}) error {
}
// Update the entry using the fieldMaskPaths and setNullPaths, which are
// Paths from field_mask.proto. fieldMaskPaths is required. setToNullPaths is
// optional. fieldMaskPaths and setNullPaths cannot intersect and both cannot be
// zero len.
// Paths from field_mask.proto. fieldMaskPaths and setNullPaths cannot
// intersect and both cannot be zero len.
func (w *GormWriter) Update(i interface{}, fieldMaskPaths, setToNullPaths []string) error {
if w.Tx == nil {
return errors.New("update Tx is nil")

Loading…
Cancel
Save