`return atom.workspace.getActiveEditor()?.getPath()` is probably better here.