File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -754,27 +754,9 @@ exec ${bin_prefix}/${name} "$@"
754754` . trim ( ) ;
755755}
756756
757-
758757function datadir ( ) {
759- const default_data_home = Deno . build . os == 'darwin' ? "/Library/Application Support" : "/.local/share" ;
760- return `\${XDG_DATA_HOME:-$HOME${ default_data_home } ` ;
758+ const default_data_home = Deno . build . os == "darwin"
759+ ? "/Library/Application Support"
760+ : "/.local/share" ;
761+ return `\${XDG_DATA_HOME:-$HOME${ default_data_home } }` ;
761762}
762-
763- function platform_data_home_default ( ) {
764- const home = Path . home ( ) ;
765- switch ( Deno . build . os ) {
766- case "darwin" :
767- return home . join ( "Library/Application Support" ) ;
768- case "windows" : {
769- const LOCALAPPDATA = Deno . env . get ( "LOCALAPPDATA" ) ;
770- if ( LOCALAPPDATA ) {
771- return new Path ( LOCALAPPDATA ) ;
772- } else {
773- return home . join ( "AppData/Local" ) ;
774- }
775- }
776- default :
777- return home . join ( ".local/share" ) ;
778- }
779- }
780-
You can’t perform that action at this time.
0 commit comments