Skip to content

Commit db959f3

Browse files
Apply suggestions from code review
Co-authored-by: Dean Sheather <dean@deansheather.com>
1 parent 528c34c commit db959f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/site.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ func htmlFiles(files fs.FS) (*htmlTemplates, error) {
386386
// ${CODER_CACHE_DIRECTORY}/site/bin).
387387
func ExtractOrReadBinFS(dest string, siteFS fs.FS) (http.FileSystem, error) {
388388
if dest == "" {
389-
// No destionation on fs, embedd fs is the only option.
389+
// No destination on fs, embedded fs is the only option.
390390
binFS, err := fs.Sub(siteFS, "bin")
391391
if err != nil {
392-
return nil, xerrors.Errorf("cache path is empty and embedd fs does not have /bin: %w", err)
392+
return nil, xerrors.Errorf("cache path is empty and embedded fs does not have /bin: %w", err)
393393
}
394394
return http.FS(binFS), nil
395395
}

0 commit comments

Comments
 (0)