summaryrefslogtreecommitdiff
path: root/addMutex.go
diff options
context:
space:
mode:
Diffstat (limited to 'addMutex.go')
-rw-r--r--addMutex.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/addMutex.go b/addMutex.go
index 0bc4e19..dfb091c 100644
--- a/addMutex.go
+++ b/addMutex.go
@@ -105,10 +105,7 @@ func (pf *File) structMatch(line string) bool {
start = "type " + msg.Name + " struct {"
if strings.HasPrefix(line, start) {
msg.MutexFound = true
- if argv.Marshal {
- // msg.Lockname = "fruitMu.Lock"
- return false
- }
+ // msg.Lockname = "x.Lock"
return true
}
@@ -116,10 +113,7 @@ func (pf *File) structMatch(line string) bool {
start = "type " + msg.Name + " struct {"
if strings.HasPrefix(line, start) {
msg.MutexFound = true
- if argv.Marshal {
- // msg.Lockname = "fruitMu.Lock"
- return false
- }
+ // msg.Lockname = "x.Lock"
return true
}
}