Skip to content

Commit

Permalink
Merge pull request #29 from perryrh0dan/dev
Browse files Browse the repository at this point in the history
fix(*): small bug
  • Loading branch information
perryrh0dan authored Aug 31, 2020
2 parents 3414a3d + 355392e commit d8e6282
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/action/repository/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn add(config: &mut Config, args: &ArgMatches) {
}
}

config.templates_repositories.push(RepositoryOptions {
config.template_repositories.push(RepositoryOptions {
name: repository_name.to_owned(),
description: repository_description,
git_options: git_options,
Expand Down
4 changes: 2 additions & 2 deletions src/action/repository/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ pub fn remove(config: &mut Config, args: &ArgMatches) {

// Update config
let index = config
.templates_repositories
.template_repositories
.iter()
.position(|x| x.name == repository_name)
.unwrap();
config.templates_repositories.remove(index);
config.template_repositories.remove(index);

match config.save() {
Ok(()) => (),
Expand Down

0 comments on commit d8e6282

Please sign in to comment.