minor changes to remove a line of dead code and update a comment
This commit is contained in:
1 parent
2d18177c9d
commit
0a2e1c3946
2 files changed
+2
-4
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user