Skip to content

Commit 0e0d272

Browse files
committed
fix: Parse first check latter
1 parent f4d23b2 commit 0e0d272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ struct Args {
3939
}
4040

4141
fn main() -> Result<()> {
42-
check_staged_files()?;
43-
4442
let args = Args::parse();
4543

44+
check_staged_files()?;
45+
4646
if args.init {
4747
let mut file = std::fs::File::create("commit.json")?;
4848
file.write_all(DEFAULT_CONFIG_FILE.as_bytes())?;

0 commit comments

Comments
 (0)