Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Codacy PR comments #1196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Engines/Wine/Engine/Object/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const WineEngine = include("engines.wine.engine.implementation");
const { fileExists } = include("utils.functions.filesystem.files");
const { fileExists} = include("utils.functions.filesystem.files");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


const configFactory = Bean("compatibleConfigFileFormatFactory");
const operatingSystemFetcher = Bean("operatingSystemFetcher");
Expand All @@ -13,7 +13,7 @@ const ProcessBuilderClass = Java.type("java.lang.ProcessBuilder");
// eslint-disable-next-line no-unused-vars
module.default = class Wine {
constructor() {
this._implementation = new WineEngine();
this._implementation = new WineEngine();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

/**
Expand All @@ -22,7 +22,7 @@ module.default = class Wine {
*/
architecture() {
if (fileExists(this.prefixDirectory())) {
const containerConfiguration = configFactory.open(this.prefixDirectory() + "/phoenicis.cfg");
//const containerConfiguration = configFactory.open(this.prefixDirectory() + "/phoenicis.cfg");
const architecture = containerConfiguration.readValue("wineArchitecture", "x86");

return architecture;
Expand All @@ -49,7 +49,6 @@ module.default = class Wine {

/**
* @param {String} [path] path for "-w" option
* @returns {String} output
*/
winepath(path) {
return this.run("winepath", ["-w", path], this.prefixDirectory(), true, true);
Expand Down