[haiku-commits] Re: r36596 - haiku/trunk/src/apps/packageinstaller

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 03 May 2010 23:39:44 +0200

Am Montag, den 03.05.2010, 18:40 +0200 schrieb Jérôme Duval:
> 2010/5/3  <superstippi@xxxxxx>:
> > -                               if (volume.IsReadOnly() ||
> > -                                               
> > volume.GetRootDirectory(&mountPoint) != B_OK)
> > +                               if (volume.IsReadOnly() || 
> > !volume.IsPersistent()
> > +                                       || 
> > volume.GetRootDirectory(&mountPoint) != B_OK) {
> >                                        continue;
> > +                               }
> 
> Why adding braces ?

Coding style requires it for multi-line if-statemens, which also goes
for if-statements where just the if-clause itself makes it multi-line.

Best regards,
-Stephan



Other related posts: