Skip to content

Commit

Permalink
Kept if-clauses formatting uniform.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosNihelton committed Oct 22, 2021
1 parent 5922463 commit 8fa5c88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DistroLauncher/DistroLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ HRESULT InstallDistribution(bool createUser)

// Create a user account.
if (createUser) {
if(DistributionInfo::isOOBEAvailable()){
if (DistributionInfo::isOOBEAvailable()){
return DistributionInfo::OOBESetup();
}
Helpers::PrintMessage(MSG_CREATE_USER_PROMPT);
Expand Down
4 changes: 3 additions & 1 deletion DistroLauncher/WindowsUserInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ namespace DistributionInfo {
} else {
std::wstring_view view{ loc,result };
std::size_t dashPos = view.find_first_of('-');
if (dashPos > 0 && dashPos < result) loc[dashPos] = '_';
if (dashPos > 0 && dashPos < result) {
loc[dashPos] = '_';
}
// (result-1) because GetUserDefaultLocaleName includes the Windows null-terminating char, not needed here.
userInfo.localeName = std::wstring{ loc, result - 1 };
}
Expand Down

0 comments on commit 8fa5c88

Please sign in to comment.