Skip to content

Adding some changes#1

Open
FZehana wants to merge 2 commits into
Parrot-Developers:masterfrom
FZehana:fix/improve_functional
Open

Adding some changes#1
FZehana wants to merge 2 commits into
Parrot-Developers:masterfrom
FZehana:fix/improve_functional

Conversation

@FZehana

@FZehana FZehana commented May 16, 2021

Copy link
Copy Markdown
  • Use of compactMap instead of (map + compactMap) in order to reduce the number of iterations in files:
    -> UpdateRestApi lines (95) (106) (219)

  • replacement of the ternery operator which manages the nil, with the map specially dedicated for oprtionals, in order to remove the unwrap, on files:
    -> GroundSdk lines (380)
    -> CameraPhotoCore lines (340) (343)
    -> CameraStylesSettingsCore lines (229)
    -> StreamServerCore lines (204)
    -> GIRenderSinkCore lines (172)

  • Using Raw value of Enumeration type Int, values are enumerated by default begin by 0
    -> DeviceConnectorCore
    -> DeviceConnector

Fayçal Zehana added 2 commits May 16, 2021 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant