public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Daniel Nguyen" <daniel.nguyen@arm.com>
To: devel@edk2.groups.io
Cc: nd@arm.com, Daniel Nguyen <daniel.nguyen@arm.com>
Subject: [edk2-devel] [PATCH v2 0/1] ShellPkg: Tidy for code readability
Date: Wed, 29 Nov 2023 12:28:39 -0600	[thread overview]
Message-ID: <20231129182840.2333098-1-daniel.nguyen@arm.com> (raw)

Use error handling instead of success handling.
Less indented logic is easier to read.

Daniel Nguyen (1):
  ShellPkg: Tidy for code readability

 ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c | 41 +++++++++++---------
 1 file changed, 23 insertions(+), 18 deletions(-)

--
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111855): https://edk2.groups.io/g/devel/message/111855
Mute This Topic: https://groups.io/mt/102877863/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



             reply	other threads:[~2023-11-29 18:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-29 18:28 Daniel Nguyen [this message]
2023-11-29 18:28 ` [edk2-devel] [PATCH v2 1/1] ShellPkg: Tidy for code readability Daniel Nguyen
2023-12-13 11:45   ` Tom Pilar
2023-12-14  2:51     ` Gao, Zhichao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231129182840.2333098-1-daniel.nguyen@arm.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox