Skip to content

Commit 6d35c3a

Browse files
mkopcinsmsluszniak
andauthored
Apply suggestion from @msluszniak
Co-authored-by: Mateusz Sluszniak <56299341+msluszniak@users.noreply.github.com>
1 parent f483fc5 commit 6d35c3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native-executorch/android/src/main/cpp/EmulatorDetection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ inline bool isEmulator() {
2323
#else
2424
char value[PROP_VALUE_MAX] = {0};
2525
__system_property_get(key, value);
26-
return std::string(value);
26+
return {value};
2727
#endif
2828
};
2929

0 commit comments

Comments
 (0)