Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
shina1024 committed Apr 20, 2024
1 parent 7bc70fb commit e53d971
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn run(opt: OptCompeteNew, ctx: crate::Context<'_>) -> anyhow::Result<()> {

let group = Group::Atcoder(crate::web::url::atcoder_contest(
outcome
.get(0)
.first()
.and_then(|p| p.contest_url.as_ref())
.with_context(|| "empty result")?,
)?);
Expand Down Expand Up @@ -145,7 +145,7 @@ pub fn run(opt: OptCompeteNew, ctx: crate::Context<'_>) -> anyhow::Result<()> {

let group = Group::Codeforces(crate::web::url::codeforces_contest(
outcome
.get(0)
.first()
.and_then(|p| p.contest_url.as_ref())
.with_context(|| "empty result")?,
)?);
Expand Down Expand Up @@ -208,7 +208,7 @@ pub fn run(opt: OptCompeteNew, ctx: crate::Context<'_>) -> anyhow::Result<()> {
)?;

let contest = outcome
.get(0)
.first()
.and_then(|p| p.contest_url.as_ref())
.map(crate::web::url::yukicoder_contest)
.transpose()?;
Expand Down

0 comments on commit e53d971

Please sign in to comment.