Skip to content

Commit 5587d35

Browse files
committed
rename constant
1 parent ba475e2 commit 5587d35

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/raptly/repo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (c *RepoRemoveCmd) Run(ctx *Context) error {
170170
const ExtDsc = ".dsc"
171171
const ExtDeb = ".deb"
172172
const ExtUdeb = ".ubed"
173-
const ExtChanged = ".changes"
173+
const ExtChanges = ".changes"
174174

175175
type RepoAddCmd struct {
176176
ForceReplace bool `kong:"name='force-replace'"`
@@ -302,7 +302,7 @@ func (c *RepoIncludeCmd) Run(ctx *Context) error {
302302
err := filepath.Walk(c.Path, func(path string, info os.FileInfo, err error) error {
303303
if !info.IsDir() {
304304
extension := filepath.Ext(path)
305-
if extension == ExtChanged {
305+
if extension == ExtChanges {
306306
filesToUpload = append(filesToUpload, path)
307307
referenced, err := getFilesFromChanges(path)
308308
if err != nil {
@@ -321,7 +321,7 @@ func (c *RepoIncludeCmd) Run(ctx *Context) error {
321321
}
322322
case mode.IsRegular():
323323
extension := filepath.Ext(c.Path)
324-
if extension == ".changes" {
324+
if extension == ExtChanges {
325325
filesToUpload = append(filesToUpload, c.Path)
326326
referenced, err := getFilesFromChanges(c.Path)
327327
if err != nil {

0 commit comments

Comments
 (0)