Skip to content

Commit

Permalink
src: fix -Wunused-result warning
Browse files Browse the repository at this point in the history
Fix a compiler warning that was introduced in commit c3dc0e0
("src: add CollectExceptionInfo & errors.SystemError") by adding
a `.FromJust()` call.

PR-URL: #16726
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
bnoordhuis committed Nov 7, 2017
1 parent 9087a1d commit 02bad59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void CollectExceptionInfo(Environment* env,

if (syscall != nullptr) {
obj->Set(env->context(), env->syscall_string(),
OneByteString(env->isolate(), syscall));
OneByteString(env->isolate(), syscall)).FromJust();
}
}

Expand Down

0 comments on commit 02bad59

Please sign in to comment.