Skip to content

Commit

Permalink
[api] Do not reset Package.commit_opts
Browse files Browse the repository at this point in the history
If we reset commit_opts it'll happen sometimes in the middle
of the callbacks which is not what we want. Fixes #1428
  • Loading branch information
hennevogel committed Feb 11, 2016
1 parent 2e34e8d commit bb66304
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/api/app/models/package.rb
Expand Up @@ -729,7 +729,6 @@ def write_to_backend
logger.tagged('backend_sync') { logger.warn "Not saving Package #{self.project.name}/#{self.name}, global_write_through is off" }
end
end
@commit_opts = {}
true
end

Expand Down Expand Up @@ -759,7 +758,6 @@ def delete_on_backend
logger.tagged('backend_sync') { logger.warn "Not deleting Package #{self.project.name}/#{self.name}, global_write_through is off" }
end
end
@commit_opts = {}
true
end

Expand Down

0 comments on commit bb66304

Please sign in to comment.