Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkenstein committed Feb 12, 2024
1 parent 1cf24a1 commit dbd11be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src-tauri/src/commands/minify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub mod minify {

#[tauri::command]
pub async fn minifyhtml(input: String) -> Result<String, String> {
let mut cfg = Cfg::new();
let cfg = Cfg::new();
let minified = minify(input.as_bytes(), &cfg);
String::from_utf8(minified).map_err(|e| e.to_string())
}
Expand Down
3 changes: 1 addition & 2 deletions src/Features/minifiers/Minify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function Minify() {

useEffect(() => {
setOutput("");
// setInput(mode === "Beautify" ? beautifyIp : minifyIp);
}, [mode]);

const format = useCallback(async () => {
Expand Down Expand Up @@ -185,7 +184,7 @@ export default function Minify() {
<Monaco
height="40%"
value={input}
setValue={(e) => setInput(e)}
setValue={(e) => setInput(e as string)}
language={lang.toLowerCase()}
/>
<Divider label="Output" />
Expand Down

0 comments on commit dbd11be

Please sign in to comment.