chore(react-native-callkeep): lint fix

This commit is contained in:
evanbacon authored and Evan Bacon committed 2022-03-22 17:08:15 -05:00
1 parent d1bf616248
commit 241d378a54
2 files changed
+6 -7

No files matched your search

@@ -6,11 +6,10 @@ function unquote(str: string) {
if (str) return str.replace(/^"(.*)"$/, "$1");
}
function nonComments(obj: Record<string, any>) {
var keys = Object.keys(obj),
newObj: Record<string, any> = {},
i = 0;
const keys = Object.keys(obj);
const newObj: Record<string, any> = {};
for (i; i < keys.length; i++) {
for (let i = 0; i < keys.length; i++) {
if (!COMMENT_KEY.test(keys[i])) {
newObj[keys[i]] = obj[keys[i]];
}
@@ -26,7 +25,8 @@ export function ensureHeaderSearchPath(project: XcodeProject, file: string) {
for (const config in configurations) {
const buildSettings = configurations[config].buildSettings;
if (unquote(buildSettings["PRODUCT_NAME"]) != project.productName) continue;
if (unquote(buildSettings["PRODUCT_NAME"]) !== project.productName)
continue;
if (!buildSettings["HEADER_SEARCH_PATHS"]) {
buildSettings["HEADER_SEARCH_PATHS"] = [INHERITED];
@@ -129,8 +129,7 @@ export const withXcodeLinkBinaryWithLibraries: ConfigPlugin<{
status?: string;
}> = (config, { library, status }) => {
return withXcodeProject(config, (config) => {
const options =
status === "optional" ? { weak: true } : {};
const options = status === "optional" ? { weak: true } : {};
const target = IOSConfig.XcodeUtils.getApplicationNativeTarget({
project: config.modResults,