Skip to content

Commit 3284ed5

Browse files
committed
fix: Lint errors
1 parent 4a75638 commit 3284ed5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/services/cocoapods-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class CocoaPodsService implements ICocoaPodsService {
8080

8181
public removePodfileFromProject(moduleName: string, podfilePath: string, projectData: IProjectData, projectRoot: string): void {
8282

83-
if ((this.$fs.exists(podfilePath) || podfilePath == projectData.podfilePath) && this.$fs.exists(this.getProjectPodfilePath(projectRoot))) {
83+
if ((this.$fs.exists(podfilePath) || podfilePath === projectData.podfilePath) && this.$fs.exists(this.getProjectPodfilePath(projectRoot))) {
8484
let projectPodFileContent = this.$fs.readText(this.getProjectPodfilePath(projectRoot));
8585
// Remove the data between #Begin Podfile and #EndPodfile
8686
const regExpToRemove = new RegExp(`${this.getPluginPodfileHeader(podfilePath)}[\\s\\S]*?${this.getPluginPodfileEnd()}`, "mg");

test/ios-project-service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function createTestInjector(projectPath: string, projectName: string, xcode?: IX
6767
testInjector.register("iOSEntitlementsService", IOSEntitlementsService);
6868
testInjector.register("logger", LoggerLib.Logger);
6969
testInjector.register("options", OptionsLib.Options);
70-
var projectData = Object.assign({}, ProjectDataStub, {
70+
const projectData = Object.assign({}, ProjectDataStub, {
7171
platformsDir: path.join(projectPath, "platforms"),
7272
projectName: projectName,
7373
projectPath: projectPath,
@@ -347,7 +347,7 @@ describe("Cocoapods support", () => {
347347

348348
const testInjector = createTestInjector(projectPath, projectName);
349349
const fs: IFileSystem = testInjector.resolve("fs");
350-
const cocoapodsService = testInjector.resolve("cocoapodsService")
350+
const cocoapodsService = testInjector.resolve("cocoapodsService");
351351

352352
const packageJsonData = {
353353
"name": "myProject",
@@ -387,8 +387,8 @@ describe("Cocoapods support", () => {
387387
const projectPodfilePath = path.join(platformsFolderPath, "Podfile");
388388
assert.isTrue(fs.exists(projectPodfilePath));
389389

390-
let actualProjectPodfileContent = fs.readText(projectPodfilePath);
391-
let expectedProjectPodfileContent = ["use_frameworks!\n",
390+
const actualProjectPodfileContent = fs.readText(projectPodfilePath);
391+
const expectedProjectPodfileContent = ["use_frameworks!\n",
392392
`target "${projectName}" do`,
393393
`# Begin Podfile - ${basePodfilePath}`,
394394
`${pluginPodfileContent}`,
@@ -602,7 +602,7 @@ describe("Source code support", () => {
602602
await iOSProjectService.prepareNativeSourceCode("src", platformSpecificAppResourcesPath, projectData);
603603

604604
return pbxProj;
605-
}
605+
};
606606

607607
const preparePluginWithFiles = async (files: string[], prepareMethodToCall: string) => {
608608
// Arrange

0 commit comments

Comments
 (0)