Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler314 committed Jun 24, 2019
1 parent 19c392e commit feda258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/sql/schema_changer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ func (sc *SchemaChanger) maybeDropValidatingConstraint(
) error {
switch constraint.ConstraintType {
case sqlbase.ConstraintToUpdate_CHECK, sqlbase.ConstraintToUpdate_NOT_NULL:
if constraint.Check.Validity == sqlbase.ConstraintValidity_Unvalidated{
if constraint.Check.Validity == sqlbase.ConstraintValidity_Unvalidated {
return nil
}
for j, c := range desc.Checks {
Expand All @@ -1521,7 +1521,7 @@ func (sc *SchemaChanger) maybeDropValidatingConstraint(
)
}
case sqlbase.ConstraintToUpdate_FOREIGN_KEY:
if constraint.ForeignKey.Validity == sqlbase.ConstraintValidity_Unvalidated{
if constraint.ForeignKey.Validity == sqlbase.ConstraintValidity_Unvalidated {
return nil
}
idx, err := desc.FindIndexByID(constraint.ForeignKeyIndex)
Expand Down
4 changes: 1 addition & 3 deletions pkg/sql/sqlbase/structured.go
Original file line number Diff line number Diff line change
Expand Up @@ -2424,9 +2424,7 @@ func (desc *MutableTableDescriptor) MakeMutationComplete(m DescriptorMutation) e
}

// AddCheckMutation adds a check constraint validation mutation to desc.Mutations.
func (desc *MutableTableDescriptor) AddCheckMutation(
ck *TableDescriptor_CheckConstraint,
) {
func (desc *MutableTableDescriptor) AddCheckMutation(ck *TableDescriptor_CheckConstraint) {
m := DescriptorMutation{
Descriptor_: &DescriptorMutation_Constraint{
Constraint: &ConstraintToUpdate{
Expand Down

0 comments on commit feda258

Please sign in to comment.