decaffeinate: rename app/coffee dir to app/js
This commit is contained in:
20
app/js/CommandRunner.js
Normal file
20
app/js/CommandRunner.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// TODO: This file was created by bulk-decaffeinate.
|
||||
// Sanity-check the conversion and remove this comment.
|
||||
/*
|
||||
* decaffeinate suggestions:
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
let commandRunnerPath;
|
||||
const Settings = require("settings-sharelatex");
|
||||
const logger = require("logger-sharelatex");
|
||||
|
||||
if ((Settings.clsi != null ? Settings.clsi.dockerRunner : undefined) === true) {
|
||||
commandRunnerPath = "./DockerRunner";
|
||||
} else {
|
||||
commandRunnerPath = "./LocalCommandRunner";
|
||||
}
|
||||
logger.info({commandRunnerPath}, "selecting command runner for clsi");
|
||||
const CommandRunner = require(commandRunnerPath);
|
||||
|
||||
module.exports = CommandRunner;
|
||||
Reference in New Issue
Block a user