Skip to content

Commit 9d52fef

Browse files
RossBruntonjhuber6
andauthored
Remove extra braces
Co-authored-by: Joseph Huber <[email protected]>
1 parent 2f95462 commit 9d52fef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

offload/liboffload/include/OffloadImpl.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ ol_errc_t GetErrorCode(std::error_code Code) {
8080
} // namespace
8181

8282
inline ol_result_t llvmErrorToOffloadError(llvm::Error &&Err) {
83-
if (!Err) {
84-
// No error
83+
if (!Err)
8584
return nullptr;
86-
}
8785

8886
ol_errc_t ErrCode;
8987
llvm::StringRef Details;

0 commit comments

Comments
 (0)