Changeset 53 in code


Ignore:
Timestamp:
Oct 28, 2021, 4:10:15 PM (4 years ago)
Author:
prologic
Message:

Code cleanup

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/.gitignore

    r51 r53  
    11*~
    22*.bak
     3**.pub
    34
    45/zs
    5 /.pub
    66/dist
     7/test.md
  • trunk/main.go

    r52 r53  
    3434        if oldext == "" || strings.HasSuffix(path, oldext) {
    3535                return strings.TrimSuffix(path, oldext) + newext
    36         } else {
    37                 return path
    38         }
     36        }
     37        return path
    3938}
    4039
     
    170169                }
    171170        }
    172         return s, nil
     171       
    173172}
    174173
  • trunk/main_test.go

    r48 r53  
    5656---
    5757Some content in markdown
    58 `: Vars{
     58`: {
    5959                        "foo":       "bar",
    6060                        "title":     "Hello, world!",
     
    6868---
    6969Hello
    70 `: Vars{
     70`: {
    7171                        "url":       "example.com/foo.html",
    7272                        "__content": "Hello\n",
Note: See TracChangeset for help on using the changeset viewer.