Use ?. where it represents the intended semantics (#11512)
This commit is contained in:
@@ -8,7 +8,7 @@ import { typeAnnotationToString } from "./helpers";
|
||||
import getRuntimePath from "./get-runtime-path";
|
||||
|
||||
function supportsStaticESM(caller) {
|
||||
return !!(caller && caller.supportsStaticESM);
|
||||
return !!caller?.supportsStaticESM;
|
||||
}
|
||||
|
||||
export default declare((api, options, dirname) => {
|
||||
|
||||
Reference in New Issue
Block a user