diff --git a/src/beautifiers/uncrustify/index.coffee b/src/beautifiers/uncrustify/index.coffee index f60a522..c76acc7 100644 --- a/src/beautifiers/uncrustify/index.coffee +++ b/src/beautifiers/uncrustify/index.coffee @@ -37,6 +37,8 @@ module.exports = class Uncrustify extends Beautifier editor = atom.workspace.getActiveTextEditor() if editor? basePath = path.dirname(editor.getPath()) + # Expand Home Directory in Config Path + configPath = expandHomeDir(configPath) # console.log(basePath); configPath = path.resolve(basePath, configPath) resolve configPath @@ -45,9 +47,6 @@ module.exports = class Uncrustify extends Beautifier ) .then((configPath) => - # Expand Home Directory in Config Path - configPath = expandHomeDir(configPath) - # Select Uncrustify language lang = "C" # Default is C switch language