Skip to content

Commit

Permalink
remove uneeded if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Hornbake committed Jul 22, 2019
1 parent fbadf0a commit f55a7aa
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions abide.go
Expand Up @@ -234,13 +234,10 @@ func writeSnapshot(id snapshotID, value string, isUpdate bool) (*snapshot, error
path := filepath.Join(dir, fmt.Sprintf("%s%s", pkg, snapshotExt))

s := &snapshot{
id: id,
value: value,
path: path,
}

if isUpdate {
s.evaluated = true
id: id,
value: value,
path: path,
evaluated: isUpdate,
}

allSnapMutex.Lock()
Expand Down

0 comments on commit f55a7aa

Please sign in to comment.